ICorsPolicyProvider.GetCorsPolicyAsync Method (IOwinRequest)
Selects a CORS policy to apply for the given request.
Namespace: Microsoft.Owin.Cors
Assembly: Microsoft.Owin.Cors (in Microsoft.Owin.Cors.dll)
Syntax
Task<CorsPolicy> GetCorsPolicyAsync(
IOwinRequest request
)
Task<CorsPolicy^>^ GetCorsPolicyAsync(
IOwinRequest^ request
)
abstract GetCorsPolicyAsync :
request:IOwinRequest -> Task<CorsPolicy>
Function GetCorsPolicyAsync (
request As IOwinRequest
) As Task(Of CorsPolicy)
Parameters
- request
Type: Microsoft.Owin.IOwinRequest
Return Value
Type: System.Threading.Tasks.Task<CorsPolicy>
The CORS policy to apply to the request, or null if no policy applies and the request should be passed through to the next middleware.
See Also
ICorsPolicyProvider Interface
Microsoft.Owin.Cors Namespace
Return to top