Show / Hide Table of Contents

Class SecurityHeadersPolicy

Defines the security headers policy.

Inheritance
System.Object
SecurityHeadersPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lib.AspNetCore.Security
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class SecurityHeadersPolicy

Properties

Csp

Gets or sets the Content-Security-Policy or Content-Security-Policy-Report-Only header value.

Declaration
public ContentSecurityPolicyHeaderValue Csp { get; set; }
Property Value
Type Description
ContentSecurityPolicyHeaderValue

ExpectCt

Gets or sets the Expect-CT header value.

Declaration
public ExpectCtHeaderValue ExpectCt { get; set; }
Property Value
Type Description
ExpectCtHeaderValue

FeaturePolicy

Gets or sets the Feature-Policy header value.

Declaration
[Obsolete("Feature Policy has been replaced with Permissions Policy.")]
public FeaturePolicyHeaderValue FeaturePolicy { get; set; }
Property Value
Type Description
FeaturePolicyHeaderValue

Hsts

Gets or sets the HTTP Strict Transport Security header value.

Declaration
public StrictTransportSecurityHeaderValue Hsts { get; set; }
Property Value
Type Description
StrictTransportSecurityHeaderValue

IsCspReportOnly

Gets or sets value indicating if the Csp property should be treated as Content-Security-Policy or Content-Security-Policy-Report-Only header value.

Declaration
public bool IsCspReportOnly { get; set; }
Property Value
Type Description
System.Boolean

PermissionsPolicy

Gets or sets the Permissions-Policy header value.

Declaration
public PermissionsPolicyHeaderValue PermissionsPolicy { get; set; }
Property Value
Type Description
PermissionsPolicyHeaderValue

ReferrerPolicy

Gets or sets the Referrer-Policy header value.

Declaration
public ReferrerPolicyHeaderValue ReferrerPolicy { get; set; }
Property Value
Type Description
ReferrerPolicyHeaderValue

SslPort

Gets or sets the SSL port used by application.

Declaration
public int? SslPort { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

XContentTypeOptions

Gets or sets the value indicating if X-Content-Type-Options header should be set.

Declaration
public bool XContentTypeOptions { get; set; }
Property Value
Type Description
System.Boolean

XDownloadOptions

Gets or sets the value indicating if X-Download-Options header should be set.

Declaration
public bool XDownloadOptions { get; set; }
Property Value
Type Description
System.Boolean

XFrameOptions

Gets or sets the X-Frame-Options header value.

Declaration
public XFrameOptionsHeaderValue XFrameOptions { get; set; }
Property Value
Type Description
XFrameOptionsHeaderValue

XPermittedCrossDomainPolicies

Gets or sets the X-Permitted-Cross-Domain-Policies header value.

Declaration
public XPermittedCrossDomainPoliciesHeaderValue XPermittedCrossDomainPolicies { get; set; }
Property Value
Type Description
XPermittedCrossDomainPoliciesHeaderValue

XXssProtection

Gets or sets the X-XSS-Protection header value.

Declaration
public XXssProtectionHeaderValue XXssProtection { get; set; }
Property Value
Type Description
XXssProtectionHeaderValue
Back to top Copyright © 2016 - 2023 Tomasz Pęczek