AdvantageApiCorsPolicyAttribute..::..GetCorsPolicyAsync Method
Asynchronously gets the CORS policy for the current request.
Namespace:
AdvantageCSP.APIAssembly: AdvantageCSP.API (in AdvantageCSP.API.dll)
Syntax
public Task<CorsPolicy> GetCorsPolicyAsync( HttpRequestMessage request, CancellationToken cancellationToken )
Parameters
- request
- Type: HttpRequestMessage
The HTTP request for which to retrieve the CORS policy.
- cancellationToken
- Type: CancellationToken
A token to cancel the operation.