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:
Eric Eslinger
2018-03-10 19:59:16 -08:00
committed by GitHub
parent 9bb6dc2f8b
commit 61543a66a2

View File

@@ -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.