Uses of Class
org.htmlunit.html.csp.ContentSecurityPolicy
Packages that use ContentSecurityPolicy
Package
Description
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.Content Security Policy (CSP) support: the
ContentSecurityPolicy
of an HtmlPage (from the Content-Security-Policy headers and meta elements),
checks for scripts, styles, images, frames, connections and more against the policy,
and the reporting of violations to a ContentSecurityPolicyViolationListener.-
Uses of ContentSecurityPolicy in org.htmlunit.html
Methods in org.htmlunit.html that return ContentSecurityPolicyModifier and TypeMethodDescriptionHtmlPage.getContentSecurityPolicy()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the Content-Security-Policy of this page.Methods in org.htmlunit.html with parameters of type ContentSecurityPolicyModifier and TypeMethodDescriptionvoidHtmlPage.setContentSecurityPolicy(ContentSecurityPolicy contentSecurityPolicy) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the Content-Security-Policy of this page. -
Uses of ContentSecurityPolicy in org.htmlunit.html.csp
Methods in org.htmlunit.html.csp that return ContentSecurityPolicyModifier and TypeMethodDescriptionstatic ContentSecurityPolicyContentSecurityPolicy.fromResponse(WebResponse webResponse) Creates the policy for the given response.static ContentSecurityPolicyReturns a copy of the policy of the creator for documents with a local scheme url (about:, data:, blob:).