Skip to content

Commit b7f7cdc

Browse files
committed
Add type for preflight status code in cors options
1 parent 2878456 commit b7f7cdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/types/route.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ export interface RouteOptionsCors {
187187
* if true, allows user credentials to be sent ('Access-Control-Allow-Credentials'). Defaults to false.
188188
*/
189189
credentials?: boolean | undefined;
190+
/**
191+
* the status code used for CORS preflight responses, either `200` or `204`. Defaults to `200`.
192+
*/
193+
preflightStatusCode?: 200 | 204
190194
}
191195

192196
/**

0 commit comments

Comments
 (0)