Class ContentSecurityPolicy
One policy per response, owned by the application rather than the reverse proxy.
public sealed class ContentSecurityPolicy
- Inheritance
-
ContentSecurityPolicy
- Inherited Members
Constructors
ContentSecurityPolicy(ContentSecurityPolicyProfile, IConfiguration?, IHostEnvironment)
public ContentSecurityPolicy(ContentSecurityPolicyProfile profile, IConfiguration? configuration, IHostEnvironment environment)
Parameters
profileContentSecurityPolicyProfileconfigurationIConfigurationenvironmentIHostEnvironment
Methods
GetHeader(HttpContext, IFileProvider?)
public string GetHeader(HttpContext context, IFileProvider? webRoot = null)
Parameters
contextHttpContextwebRootIFileProvider