C# 클래스 AngularAzureSearch.WebAPI.Cors.MyCustomCorsPolicyProvider

상속: ICorsPolicyProvider
파일 보기 프로젝트 열기: TheDarkCode/AngularAzureSearch

공개 메소드들

메소드 설명
GetCorsPolicyAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Returns custom CorsPolicy with AllowAnyHeader and AllowAnyMethod set to true by default. Allowed origins are imported from config via helper then split into an array and added to the CorsPolicy.Origins variable of type "IList string".

메소드 상세

GetCorsPolicyAsync() 공개 메소드

Returns custom CorsPolicy with AllowAnyHeader and AllowAnyMethod set to true by default. Allowed origins are imported from config via helper then split into an array and added to the CorsPolicy.Origins variable of type "IList string".
public GetCorsPolicyAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 Task