Skip to content

Commit

Permalink
Add type for preflight status code in cors options
Browse files Browse the repository at this point in the history
  • Loading branch information
guoard committed Dec 17, 2022
1 parent 2878456 commit b7f7cdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/types/route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ export interface RouteOptionsCors {
* if true, allows user credentials to be sent ('Access-Control-Allow-Credentials'). Defaults to false.
*/
credentials?: boolean | undefined;
/**
* the status code used for CORS preflight responses, either `200` or `204`. Defaults to `200`.
*/
preflightStatusCode?: 200 | 204
}

/**
Expand Down

0 comments on commit b7f7cdc

Please sign in to comment.