Class CspToSourceDirectiveBuilder<TSourceDirective, TBuilder>
Represents all directive builders that configures ContentSecurityPolicySourceDirective.
Inheritance
CspDirectiveBuilder<TSourceDirective>
CspToSourceDirectiveBuilder<TSourceDirective, TBuilder>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
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. |