|
名稱 |
類型 |
描述 |
樣本值 |
|---|---|---|---|
|
object |
|||
| allowOrigins |
array |
["https://example.com", "https://app.example.com"] |
|
|
string |
|||
| allowMethods |
array |
["GET", "POST", "OPTIONS"] |
|
|
string |
|||
| allowHeaders |
array |
["Content-Type", "Authorization"] |
|
|
string |
|||
| exposeHeaders |
array |
["X-Custom-Header"] |
|
|
string |
|||
| allowCredentials |
boolean |
true |
|
| maxAge |
integer |
3600 |