Class CspSourceDirectiveBuilder<TSourceDirective, TBuilder>
Represents all directive builders that configures ContentSecurityPolicySourceDirective.
Inheritance
Inherited Members
Namespace: IRM.AspNetCore.Http.Headers.Builder
Assembly: IRM.AspNetCore.Mvc.dll
Syntax
public abstract class CspSourceDirectiveBuilder<TSourceDirective, TBuilder> : CspDirectiveBuilder<TSourceDirective> where TSourceDirective : ContentSecurityPolicySourceDirective, new()
where TBuilder : CspSourceDirectiveBuilder<TSourceDirective, TBuilder>
Type Parameters
TSourceDirective
The type of directive that the implementation is building. |
TBuilder
The actual implementation of this abstract class. |
Methods
From(String)
Allows from the supplied url
.
Declaration
public TBuilder From(string url)
Parameters
String
url
The url to allow |
Returns
TBuilder
The builder for futher configuration. |
FromAnywhere()
Allows from anywhere, except for data:, blob: and filesystem: schemes.
Declaration
public TBuilder FromAnywhere()
Returns
TBuilder
The builder for futher configuration. |
FromAnywhereOverHttps()
Allows from anywhere over https, except for data:, blob: and filesystem: schemes.
Declaration
public TBuilder FromAnywhereOverHttps()
Returns
TBuilder
The builder for futher configuration. |
FromBlob()
Allows from blob: scheme.
Declaration
public TBuilder FromBlob()
Returns
TBuilder
The builder for futher configuration. |
FromData()
Allows from blob: scheme.
Declaration
public TBuilder FromData()
Returns
TBuilder
The builder for futher configuration. |
FromFilesystem()
Allows from filesystem: scheme.
Declaration
public TBuilder FromFilesystem()
Returns
TBuilder
The builder for futher configuration. |
FromMediastream()
Allows from mediastream: scheme.
Declaration
public TBuilder FromMediastream()
Returns
TBuilder
The builder for futher configuration. |
FromNowhere()
Blocks all.
Declaration
public void FromNowhere()
FromSelf()
Allows from current domain.
Declaration
public TBuilder FromSelf()
Returns
TBuilder
The builder for futher configuration. |