Models.Configuration.SecurityDirective Class
Namespace: Nucleus.Abstractions.Models.Configuration
Assembly: Nucleus.Abstractions.dll
Class used to read settings for Content Securoity Policy directives. Each directive can override or extend the default directive(s) generated by SecurityHeadersMiddleware, based on the value of
UriOperation.
Properties
UriOperation
Property
Operation to perform on the directive.
Uris
Property
A list of space-delimited Uris. Depending on the value of
UriOperation, the specified Uris are either added to the list of automatically-derived values, or conpletely replace them. In most cases you should include a "/" character at the end of each Uri to ensure that the directive applies to all subfolders and files.
Value
Property
Value to set for the Content-Security-Policy directive. Specifying a value here will override the values which are generated by SecurityHeadersMiddleware. If you want to add extra Uris to the directive, use the
Uris property instead.