HtmlCspExtensions.AddCspScriptUrl method

namespace: Serenity.Web   assemblySerenity.Net.Web

Adds a Content Security Policy script-src directive for the given URL and returns the URL. This can be used in script include helpers for external URLs.

public static string AddCspScriptUrl(this IHtmlHelper html, string url)
parameter description
html Html helper
url Url

See Also