ServiceCorsConfigurationInfo interface
服務實例之 CORS 組態的設定。
屬性
allow |
如果允許透過 CORS 認證。 |
headers | 允許透過 CORS 的標頭。 |
max |
允許透過 CORS 的最大存留期。 |
methods | 允許透過 CORS 的方法。 |
origins | 允許透過 CORS 的來源。 |
屬性詳細資料
allowCredentials
如果允許透過 CORS 認證。
allowCredentials?: boolean
屬性值
boolean
headers
允許透過 CORS 的標頭。
headers?: string[]
屬性值
string[]
maxAge
允許透過 CORS 的最大存留期。
maxAge?: number
屬性值
number
methods
允許透過 CORS 的方法。
methods?: string[]
屬性值
string[]
origins
允許透過 CORS 的來源。
origins?: string[]
屬性值
string[]