CorsSettings interface
應用程式的跨原始來源資源分享 (CORS) 設定。
屬性
| allowed |
取得或設定應該允許進行跨原始來源呼叫的來源清單(例如: |
| support |
取得或設定是否允許具有認證的CORS要求。 如需詳細資訊,請參閱 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials。 |
屬性詳細資料
allowedOrigins
取得或設定應該允許進行跨原始來源呼叫的來源清單(例如:http://example.com:12345)。 使用 「*」 來允許所有專案。
allowedOrigins?: string[]
屬性值
string[]
supportCredentials
取得或設定是否允許具有認證的CORS要求。 如需詳細資訊,請參閱 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials。
supportCredentials?: boolean
屬性值
boolean