CORSConfig

更新时间:
复制为 MD 格式

名称

类型

描述

示例值

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