다음을 통해 공유


CorsSettings interface

앱에 대한 CORS(원본 간 리소스 공유) 설정입니다.

속성

allowedOrigins

원본 간 호출을 수행할 수 있어야 하는 원본 목록을 가져오거나 설정합니다(예: http://example.com:12345). "*"를 사용하여 모두 허용합니다.

supportCredentials

자격 증명이 있는 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