HtmlHelpers.AddAllowedSourceHtmlHelper Class
Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to add allowed sources. Allowed sources are added to the content security policy.
Methods
AddAllowedSource
(IHtmlHelper, AllowedSourceTypes, String) Method
AddAllowedSource (IHtmlHelper htmlHelper, AllowedSourceTypes type, String url)
Add an allowed resource source. Allowed sources are used to configure the Content Security Policy (CSP) for the page.
AddAllowedSource
(HttpContext, AllowedSourceTypes, String) Method
AddAllowedSource (HttpContext context, AllowedSourceTypes type, String url)
Add an allowed resource source. Allowed sources are used to configure the Content Security Policy (CSP) for the page.
AddAllowedSources
(IHtmlHelper, AllowedSourceTypes, IEnumerable<String>) Method
AddAllowedSources (IHtmlHelper htmlHelper, AllowedSourceTypes type, IEnumerable<String> sourceUrls)
Add multiple allowed resource sources. Allowed sources are used to configure the Content Security Policy (CSP) for the page.
AddAllowedSources
(HttpContext, AllowedSourceTypes, IEnumerable<String>) Method
AddAllowedSources (HttpContext context, AllowedSourceTypes type, IEnumerable<String> sourceUrls)
Add multiple allowed resource sources. Allowed sources are used to configure the Content Security Policy (CSP) for the page.