Class Security
- Namespace
- Mithril.Core.Abstractions.Configuration
- Assembly
- Mithril.Core.Abstractions.dll
Security options
public class Security
- Inheritance
-
Security
- Inherited Members
- Extension Methods
Properties
ContentSecurityPolicy
Gets or sets the content security policy.
public string? ContentSecurityPolicy { get; set; }
Property Value
- string
The content security policy.
DefaultCorsPolicy
Gets or sets the default cors origins (if empty, CORS is not enabled by default).
public string? DefaultCorsPolicy { get; set; }
Property Value
- string
The default cors origins (if empty, CORS is not enabled by default).
RequireHttps
Gets or sets the require HTTPS.
public bool RequireHttps { get; set; }
Property Value
- bool
The require HTTPS.
XFrameOptions
Gets or sets the x-frame options.
public string? XFrameOptions { get; set; }
Property Value
- string
The x-frame options.