#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Configuration](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Configuration 'Abblix\.Oidc\.Server\.Mvc\.Configuration')

## CorsSettings Class

Represents the settings for Cross\-Origin Resource Sharing \(CORS\) policy\.
CORS policies allow web applications to make requests from different domains,
enhancing security by restricting cross\-origin requests\.

```csharp
public record CorsSettings : System.IEquatable<Abblix.Oidc.Server.Mvc.Configuration.CorsSettings>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → CorsSettings

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[CorsSettings](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Configuration.CorsSettings 'Abblix\.Oidc\.Server\.Mvc\.Configuration\.CorsSettings')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Properties

## CorsSettings\.AllowCredentials Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.AllowCredentials}

Indicates whether the resource supports credentials like cookies, authorization headers,
or TLS client certificates\.

```csharp
public System.Nullable<bool> AllowCredentials { get; init; }
```

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

## CorsSettings\.AllowedHeaders Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.AllowedHeaders}

Defines which HTTP headers can be used when making the actual request to the resource\.

```csharp
public string[]? AllowedHeaders { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array')

## CorsSettings\.AllowedMethods Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.AllowedMethods}

Specifies which HTTP methods are permitted when accessing the resource from the allowed origins\.

```csharp
public string[]? AllowedMethods { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array')

## CorsSettings\.AllowedOrigins Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.AllowedOrigins}

A list of origins that are allowed to make requests to the resource,
enhancing security by limiting cross\-origin interactions\.

```csharp
public string[]? AllowedOrigins { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array')

## CorsSettings\.ExposeHeaders Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.ExposeHeaders}

Specifies which headers can be exposed as part of the response by listing them\.

```csharp
public string[]? ExposeHeaders { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array')

## CorsSettings\.MaxAge Property {#Abblix.Oidc.Server.Mvc.Configuration.CorsSettings.MaxAge}

Defines the maximum duration the information provided by the Access\-Control\-Allow\-Methods and
Access\-Control\-Allow\-Headers headers can be cached\.

```csharp
public System.Nullable<System.TimeSpan> MaxAge { get; init; }
```

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')
