Skip to content

Class CorsSettings ​

Namespace: Momentum.ServiceDefaults.Api.FrontendIntegration
Assembly: Momentum.ServiceDefaults.Api.dll

Configuration settings for CORS policy, bound from the "Cors" configuration section.

csharp
public sealed class CorsSettings

Inheritance ​

object ← CorsSettings

Inherited Members ​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors ​

CorsSettings() ​

csharp
public CorsSettings()

Properties ​

AllowCredentials ​

csharp
public bool AllowCredentials { get; set; }

Property Value ​

bool

AllowedHeaders ​

csharp
public string[] AllowedHeaders { get; set; }

Property Value ​

string[]

AllowedMethods ​

csharp
public string[] AllowedMethods { get; set; }

Property Value ​

string[]

AllowedOrigins ​

csharp
public string[] AllowedOrigins { get; set; }

Property Value ​

string[]