Uses of Class
com.helger.http.csp.CSPDirective
Packages that use CSPDirective
-
Uses of CSPDirective in com.helger.http.csp
Methods in com.helger.http.csp that return CSPDirectiveModifier and TypeMethodDescriptionstatic CSPDirectiveCSPDirective.createBaseURI(String sValue) Restricts the URLs which can be used in a document's <base> element.static CSPDirectiveCSPDirective.createChildSrc(AbstractCSPSourceList<?> aValue) Defines valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>static CSPDirectiveCSPDirective.createConnectSrc(AbstractCSPSourceList<?> aValue) Applies to XMLHttpRequest (AJAX), WebSocket or EventSource.static CSPDirectiveCSPDirective.createDefaultSrc(AbstractCSPSourceList<?> aValue) The "default-src" is the default policy for loading content such as JavaScript, Images, CSS, Fonts, AJAX requests, Frames, HTML5 Media.static CSPDirectiveCSPDirective.createFontSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of fonts.static CSPDirectiveCSPDirective.createFormAction(AbstractCSPSourceList<?> aValue) Defines valid sources that can be used as a HTML <form> action.static CSPDirectiveCSPDirective.createFrameAncestors(AbstractCSPSourceList<?> aValue) Defines valid sources for embedding the resource using <frame> <iframe> <object> <embed> <applet>.static CSPDirectiveCSPDirective.createFrameSrc(AbstractCSPSourceList<?> aValue) The HTTP Content-Security-Policy (CSP) "frame-src" directive specifies valid sources for nested browsing contexts loading using elements such as <frame> and <iframe>.static CSPDirectiveCSPDirective.createImgSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of images.static CSPDirectiveCSPDirective.createManifestSrc(AbstractCSPSourceList<?> aValue) Specifies valid sources of application manifest files.static CSPDirectiveCSPDirective.createMediaSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of audio and video, eg HTML5 <audio>, <video> elements.static CSPDirectiveCSPDirective.createObjectSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of plugins, eg <object>, <embed> or <applet>.static CSPDirectiveCSPDirective.createPrefetchSrc(AbstractCSPSourceList<?> aValue) Deprecated, for removal: This API element is subject to removal in a future version.static CSPDirectiveCSPDirective.createReportTo(String sValue) The Content-Security-Policy "report-to" directive indicates the name of the endpoint that the browser should use for reporting CSP violations.static CSPDirectiveCSPDirective.createReportURI(String sValue) The report-uri directive specifies a URI to which the user agent sends reports about policy violation.
Deprecated in favour ofcreateReportTo(String)but browser support is not yet ideal.static CSPDirectiveCSPDirective.createSandbox(String sValue) The sandbox directive specifies an HTML sandbox policy that the user agent applies to the protected resource.static CSPDirectiveCSPDirective.createScriptSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of JavaScript.static CSPDirectiveCSPDirective.createScriptSrcAttr(AbstractCSPSourceList<?> aValue) The HTTP Content-Security-Policy (CSP) "script-src-attr" directive specifies valid sources for JavaScript inline event handlers.static CSPDirectiveCSPDirective.createScriptSrcElem(AbstractCSPSourceList<?> aValue) The HTTP Content-Security-Policy (CSP) "script-src-elem" directive specifies valid sources for JavaScript <script> elements.static CSPDirectiveCSPDirective.createStyleSrc(AbstractCSPSourceList<?> aValue) Defines valid sources of stylesheets.static CSPDirectiveCSPDirective.createStyleSrcAttr(AbstractCSPSourceList<?> aValue) The HTTP Content-Security-Policy (CSP) "style-src-attr" directive specifies valid sources for inline styles applied to individual DOM elements.static CSPDirectiveCSPDirective.createStyleSrcElem(AbstractCSPSourceList<?> aValue) The HTTP Content-Security-Policy (CSP) "style-src-elem" directive specifies valid sources for stylesheet<style>elements and<link>elements withrel="stylesheet".static CSPDirectiveCSPDirective.createWorkerSrc(AbstractCSPSourceList<?> aValue) Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts.