Show / Hide Table of Contents

Class CspToSourceDirectiveBuilder<TSourceDirective, TBuilder>

Represents all directive builders that configures ContentSecurityPolicySourceDirective.

Inheritance
Object
CspDirectiveBuilder<TSourceDirective>
CspToSourceDirectiveBuilder<TSourceDirective, TBuilder>
CspConnectionBuilder
CspFormActionBuilder
Inherited Members
CspDirectiveBuilder<TSourceDirective>.Directive
CspDirectiveBuilder<TSourceDirective>.Build()
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.Builder
Assembly: IRM.AspNetCore.Mvc.dll
Syntax
public abstract class CspToSourceDirectiveBuilder<TSourceDirective, TBuilder> : CspDirectiveBuilder<TSourceDirective> where TSourceDirective : ContentSecurityPolicySourceDirective, new()
    where TBuilder : CspToSourceDirectiveBuilder<TSourceDirective, TBuilder>
Type Parameters
TSourceDirective

The type of directive that the implementation is building.

TBuilder

The actual implementation of this abstract class.

Methods

FromAnywhere()

Allows from anywhere, except for data:, blob: and filesystem: schemes.

Declaration
public TBuilder FromAnywhere()
Returns
TBuilder

The builder for futher configuration.

To(String)

Allows to the supplied url.

Declaration
public TBuilder To(string url)
Parameters
String url

The url to allow

Returns
TBuilder

The builder for futher configuration.

ToAnywhereOverHttps()

Allows to anywhere over https, except for data:, blob: and filesystem: schemes.

Declaration
public TBuilder ToAnywhereOverHttps()
Returns
TBuilder

The builder for futher configuration.

ToNowhere()

Blocks all.

Declaration
public void ToNowhere()

ToSelf()

Allows to current domain.

Declaration
public TBuilder ToSelf()
Returns
TBuilder

The builder for futher configuration.

Back to top Generated by DocFX