C# Класс AngularAzureSearch.WebAPI.Cors.MyCustomCorsPolicyProvider

Наследование: ICorsPolicyProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
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