Nucleus .Net Core CMS

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.
Content-Security-Policy directive name. Refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy#fetch_directives for more information on available directives.
Operation to perform on the directive.
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 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.