CorsEndpointConventionBuilderExtensions 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.
CORS extension methods for IEndpointConventionBuilder.
public ref class CorsEndpointConventionBuilderExtensions abstract sealed
public static class CorsEndpointConventionBuilderExtensions
type CorsEndpointConventionBuilderExtensions = class
Public Module CorsEndpointConventionBuilderExtensions
- Inheritance
-
CorsEndpointConventionBuilderExtensions
Methods
RequireCors<TBuilder>(TBuilder) |
Adds a CORS policy with the default policy name to the endpoint(s). |
RequireCors<TBuilder>(TBuilder, Action<CorsPolicyBuilder>) |
Adds the specified CORS policy to the endpoint(s). |
RequireCors<TBuilder>(TBuilder, String) |
Adds a CORS policy with the specified name to the endpoint(s). |
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