CorsMiddleware.Invoke Method (IDictionary<String, Object>)
Evaluates and applies the CORS policy. Responses will be generated for preflight requests. Requests that are permitted by the CORS policy will be passed onto the next middleware.
Namespace: Microsoft.Owin.Cors
Assembly: Microsoft.Owin.Cors (in Microsoft.Owin.Cors.dll)
Syntax
public Task Invoke(
IDictionary<string, object> environment
)
public:
Task^ Invoke(
IDictionary<String^, Object^>^ environment
)
member Invoke :
environment:IDictionary<string, Object> -> Task
Public Function Invoke (
environment As IDictionary(Of String, Object)
) As Task
Parameters
- environment
Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Threading.Tasks.Task
Returns Task.
See Also
CorsMiddleware Class
Microsoft.Owin.Cors Namespace
Return to top