mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 02:57:24 +08:00
Allow true as a cors option
Per the hapi documentation, setting `cors: true` is allowed, and will do default cors-ing. [ref](https://hapijs.com/api#-routeoptionscors)
This commit is contained in:
2
types/hapi/index.d.ts
vendored
2
types/hapi/index.d.ts
vendored
@@ -1706,7 +1706,7 @@ export interface RouteOptions {
|
||||
* * credentials - if true, allows user credentials to be sent ('Access-Control-Allow-Credentials'). Defaults to false.
|
||||
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionscors)
|
||||
*/
|
||||
cors?: false | RouteOptionsCors;
|
||||
cors?: boolean | RouteOptionsCors;
|
||||
|
||||
/**
|
||||
* Default value: none.
|
||||
|
||||
Reference in New Issue
Block a user