CorsMiddleware Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A middleware for handling CORS.
public ref class CorsMiddleware
public class CorsMiddleware
type CorsMiddleware = class
Public Class CorsMiddleware
- Inheritance
-
CorsMiddleware
Constructors
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, CorsPolicy, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, ILoggerFactory, String) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ICorsPolicyProvider, String) |
Obsolete.
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory) |
Instantiates a new CorsMiddleware. |
CorsMiddleware(RequestDelegate, ICorsService, ILoggerFactory, String) |
Instantiates a new CorsMiddleware. |
Methods
Invoke(HttpContext) | System.Object.Invoke(Microsoft.AspNetCore.Http.HttpContext) |
Invoke(HttpContext, ICorsPolicyProvider) | System.Object.Invoke(Microsoft.AspNetCore.Http.HttpContext,Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider) |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for