Class CspDecorator

All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable, Loadable, OnMaster

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class CspDecorator extends PageDecorator
  • Constructor Details

    • CspDecorator

      public CspDecorator()
  • Method Details

    • getContentSecurityPolicyHeaderValue

      public String getContentSecurityPolicyHeaderValue(jakarta.servlet.http.HttpServletRequest req)
    • getReportingEndpointsHeaderValue

      @CheckForNull public String getReportingEndpointsHeaderValue(jakarta.servlet.http.HttpServletRequest req)
    • getContentSecurityPolicyHeaderName

      public String getContentSecurityPolicyHeaderName()
      Determines the name of the HTTP header to set.
      Returns:
      the name of the HTTP header to set.