AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AdvantageApiCorsPolicyAttribute Constructor

Initializes a new instance of the AdvantageApiCorsPolicyAttribute class.

Namespace:  AdvantageCSP.API
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public AdvantageApiCorsPolicyAttribute(
	Type policyProviderType
)

Parameters

policyProviderType
Type: Type
The type of the CORS policy provider to apply.

Exceptions


ExceptionCondition
ArgumentException Thrown if policyProviderType is null or does not inherit from AdvantageApiCorsPolicyProviderBase.