Show / Hide Table of Contents

Class ContentSecurityPolicySandbox

Represents the sandbox directive of the Content Security Policy.

Inheritance
Object
ContentSecurityPolicyDirective
ContentSecurityPolicySandbox
Inherited Members
ContentSecurityPolicyDirective.GetDirective(IContentSecurityPolicyNonceService)
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Http.Headers
Assembly: IRM.AspNetCore.Mvc.dll
Syntax
public class ContentSecurityPolicySandbox : ContentSecurityPolicyDirective

Constructors

ContentSecurityPolicySandbox()

Creates a new instance of ContentSecurityPolicySandbox.

Declaration
public ContentSecurityPolicySandbox()

Properties

AllowForms

Gets or sets if the embedded browsing context is allowed to submit forms.

Declaration
public bool AllowForms { get; set; }
Property Value
Boolean

AllowModals

Gets or sets if the embedded browsing context is allowed to open modal windows.

Declaration
public bool AllowModals { get; set; }
Property Value
Boolean

AllowOrientationLock

Gets or sets if the embedded browsing context is allowed to disable the ability to lock the screen orientation.

Declaration
public bool AllowOrientationLock { get; set; }
Property Value
Boolean

AllowPointerLock

Gets or sets if the embedded browsing context is allowed to use the Pointer Lock API.

Declaration
public bool AllowPointerLock { get; set; }
Property Value
Boolean

AllowPopups

Gets or sets if popups (like from window.open, target="_blank", showModalDialog) is allowed.

Declaration
public bool AllowPopups { get; set; }
Property Value
Boolean

AllowPopupsToEscapeSandbox

Gets or sets if a sandboxed document is allowed to open new windows without forcing the sandboxing flags upon them.

Declaration
public bool AllowPopupsToEscapeSandbox { get; set; }
Property Value
Boolean

AllowPresentation

Gets or sets if embedders is allowed to have control over whether an iframe can start a presentation session.

Declaration
public bool AllowPresentation { get; set; }
Property Value
Boolean

AllowSameOrigin

Gets or sets if the content is allowed to be treated as being from its normal origin.

Declaration
public bool AllowSameOrigin { get; set; }
Property Value
Boolean

AllowScripts

Gets or sets if the embedded browsing context is allowed to run scripts (but not create pop-up windows).

Declaration
public bool AllowScripts { get; set; }
Property Value
Boolean

AllowTopNavigation

Gets or sets if the embedded browsing context is allowed to navigate (load) content to the top-level browsing context.

Declaration
public bool AllowTopNavigation { get; set; }
Property Value
Boolean

Methods

GetParts(IContentSecurityPolicyNonceService)

Gets all part strings that should be in the directive.

Declaration
protected override ICollection<string> GetParts(IContentSecurityPolicyNonceService nonceService)
Parameters
IContentSecurityPolicyNonceService nonceService

The service used to create a nonce per request.

Returns
System.Collections.Generic.ICollection<String>

A collection of source strings.

Overrides
ContentSecurityPolicyDirective.GetParts(IContentSecurityPolicyNonceService)
Back to top Generated by DocFX