Table of Contents

Class CORS_PolicyAttribute

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.Annotations.dll

Declare a CORS policy.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = true)]
public class CORS_PolicyAttribute : Attribute
Inheritance
object
Attribute
CORS_PolicyAttribute

Remarks

You must use with [EnableCORS(..)] to enable the policy

Constructors

CORS_PolicyAttribute(string)

public CORS_PolicyAttribute(string PolicyName)

Parameters

PolicyName string

CORS_PolicyAttribute(string, params string[])

public CORS_PolicyAttribute(string PolicyName, params string[] Origins)

Parameters

PolicyName string
Origins string[]

Fields

Credentials

public bool? Credentials

Field Value

bool?

ExposedHeaders

public string[]? ExposedHeaders

Field Value

string[]

Headers

public string[]? Headers

Field Value

string[]

MaxAge

public TimeSpan? MaxAge

Field Value

TimeSpan?

Methods

public Methods? Methods

Field Value

Methods?

Origins

public string[]? Origins

Field Value

string[]

PolicyName

public string? PolicyName

Field Value

string