Class CspPluginBuilder
Helper functions for configuring content security policy rules related to controlling which media types is allowd.
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 class CspPluginBuilder : CspDirectiveBuilder<ContentSecurityPolicyPluginTypes>
Methods
WithMimeType(String)
Add valid MIME sub type for plugins invoked via <object>, <embed>, or <applet>. In order to use <applet>, you must add x-java-applet.
Declaration
public CspPluginBuilder WithMimeType(string subType)
Parameters
String
subType
The MIME subtype to allow. |
Returns
CspPluginBuilder
The builder for futher configuration. |
WithMimeType(String, String)
Add valid MIME sub type for plugins invoked via <object>, <embed>, or <applet>. In order to use <applet>, you must add subType x-java-applet.
Declaration
public CspPluginBuilder WithMimeType(string type, string subType)
Parameters
String
type
The MIME type to allow. |
String
subType
The MIME subtype to allow. |
Returns
CspPluginBuilder
The builder for futher configuration. |