Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.Server.dll Namespace: CloudNimble.BlazorEssentials.Server.Middleware Inheritance: System.Object

Syntax

CloudNimble.BlazorEssentials.Server.Middleware.CrossOriginIsolationOptions

Summary

Configuration options for the CrossOriginIsolationMiddleware.

Constructors

.ctor

Syntax

public CrossOriginIsolationOptions()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

CoepPolicy

Gets or sets the Cross-Origin-Embedder-Policy value. Default is “require-corp”.

Syntax

public string CoepPolicy { get; set; }

Property Value

Type: string

Remarks

Possible values:

CoopPolicy

Gets or sets the Cross-Origin-Opener-Policy value. Default is “same-origin”.

Syntax

public string CoopPolicy { get; set; }

Property Value

Type: string

Remarks

Possible values:

CorpPolicy

Gets or sets the Cross-Origin-Resource-Policy value. Default is “same-origin”.

Syntax

public string CorpPolicy { get; set; }

Property Value

Type: string

Remarks

Possible values:

ExcludePaths

Gets or sets a list of path prefixes to exclude from cross-origin isolation. Paths starting with these prefixes will not have the headers added.

Syntax

public System.Collections.Generic.List<string> ExcludePaths { get; set; }

Property Value

Type: System.Collections.Generic.List<string>

Examples

options.ExcludePaths.Add("/api/");
options.ExcludePaths.Add("/external/");

IncludeCorpHeader

Gets or sets whether to include the Cross-Origin-Resource-Policy header. Default is true.

Syntax

public bool IncludeCorpHeader { get; set; }

Property Value

Type: bool

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?