CorsOptions
Defined in: src/plugins/middleware/cors.ts:4
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
|
|
HTTP headers to allow. |
||
|
|
Whether to allow credentials.
NOTE: Cannot be combined with |
||
|
|
HTTP headers to expose. |
||
|
|
Maximum age of preflight request. |
||
|
|
HTTP methods to allow. |
||
|
|
HTTP status code for successful OPTIONS preflight requests. Default |
||
|
|
Origin to allow. Can be a string, array of strings, or function that returns a string. |
||
|
|
Whether to pass preflight requests to the next handler. Default |