Table of Contents

Class CorsOptions

Namespace
Builvero.Application.Options
Assembly
Builvero.Application.dll

CORS (Cross-Origin Resource Sharing) configuration options.

public sealed class CorsOptions
Inheritance
CorsOptions
Inherited Members

Remarks

These options control which origins are allowed to make cross-origin requests to the API. Configured in appsettings.json under the "Cors" section.

Fields

SectionName

Configuration section name for CORS options in appsettings.json.

public const string SectionName = "Cors"

Field Value

string
CORS (Cross-Origin Resource Sharing) configuration options.

Properties

AllowedOrigins

Gets or sets the list of allowed origins for CORS requests.

public string[] AllowedOrigins { get; init; }

Property Value

string[]
CORS (Cross-Origin Resource Sharing) configuration options.

Remarks

Each origin should be a fully qualified URL (e.g., "https://www.builvero.com"). Wildcards are not supported for security reasons. Use specific origins only.

If empty, CORS will be disabled. In production, this should include the frontend domain(s). Example: ["https://www.builvero.com", "https://builvero.com"]