다음을 통해 공유


CorsSettings 클래스

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

상속
azure.mgmt.web._serialization.Model
CorsSettings

생성자

CorsSettings(*, allowed_origins: List[str] | None = None, support_credentials: bool | None = None, **kwargs: Any)

키워드 전용 매개 변수

Name Description
allowed_origins

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

support_credentials

자격 증명이 있는 CORS 요청이 허용되는지 여부를 가져오거나 설정합니다. 자세한 내용은 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials를 참조하세요.

변수

Name Description
allowed_origins

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

support_credentials

자격 증명이 있는 CORS 요청이 허용되는지 여부를 가져오거나 설정합니다. 자세한 내용은 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials를 참조하세요.