From 61543a66a2618497916deb72e623a64beda7c948 Mon Sep 17 00:00:00 2001 From: Eric Eslinger Date: Sat, 10 Mar 2018 19:59:16 -0800 Subject: [PATCH] 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) --- types/hapi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 210e1cc332..6abfbefe87 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -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.