Uses of Class
org.apache.juneau.http.header.ContentSecurityPolicy.Builder
Packages that use ContentSecurityPolicy.Builder
-
Uses of ContentSecurityPolicy.Builder in org.apache.juneau.http.header
Methods in org.apache.juneau.http.header that return ContentSecurityPolicy.BuilderModifier and TypeMethodDescriptionSets thebase-uri directive.ContentSecurityPolicy.Builder.connectSrc(String... sources) Sets theconnect-src directive.ContentSecurityPolicy.Builder.create()Creates a new empty builder.ContentSecurityPolicy.create()Creates a new emptyContentSecurityPolicy.Builder.ContentSecurityPolicy.Builder.defaultSrc(String... sources) Sets thedefault-src directive.Generic escape hatch for setting any directive by name.Sets thefont-src directive.ContentSecurityPolicy.Builder.frameAncestors(String... sources) Sets theframe-ancestors directive.Sets theimg-src directive.Sets theobject-src directive.ContentSecurityPolicy.Builder.reportOnly()Flips the rendered header to the observe-onlyContentSecurityPolicy.REPORT_ONLY_NAMEvariant.ContentSecurityPolicy.Builder.reportOnly(boolean value) Sets whether the rendered header uses the observe-onlyContentSecurityPolicy.REPORT_ONLY_NAMEvariant.Sets thereport-to directive (the CSP3 reporting-group mechanism).Sets thereport-uri directive (deprecated in CSP3 but still widely supported).Sets thescript-src directive.ContentSecurityPolicy.Builder.strictStarter()Creates a builder pre-populated with the nonce-based strict starter preset.ContentSecurityPolicy.strictStarter()Creates aContentSecurityPolicy.Builderpre-populated with the nonce-based strict starter preset.Sets thestyle-src directive.