CorsPolicyMetadata Class
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.
Metadata that provides a CORS policy.
public ref class CorsPolicyMetadata : Microsoft::AspNetCore::Cors::Infrastructure::ICorsMetadata, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyMetadata
C#
public class CorsPolicyMetadata : Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyMetadata
type CorsPolicyMetadata = class
interface ICorsMetadata
interface ICorsPolicyMetadata
type CorsPolicyMetadata = class
interface ICorsPolicyMetadata
interface ICorsMetadata
Public Class CorsPolicyMetadata
Implements ICorsMetadata, ICorsPolicyMetadata
- Inheritance
-
CorsPolicyMetadata
- Implements
Cors |
Creates a new instance of CorsPolicyMetadata using the specified policy. |
Policy |
The policy which needs to be applied. |
Product | Versions |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |