Class HttpSecurityStep

java.lang.Object
com.atlassian.jira.web.filters.steps.security.HttpSecurityStep
All Implemented Interfaces:
FilterStep

public class HttpSecurityStep extends Object implements FilterStep
Sets the following security headers on each HTTP response:
  • REFERRER-POLICY
  • with "strict-origin-when-cross-origin"
  • X_XSS_PROTECTION with "1; mode=block"
  • X_CONTENT_TYPE_OPTIONS with "nosniff"
  • X_FRAME_OPTIONS with "SAMEORIGIN"
  • CONTENT_SECURITY_POLICY with "frame-ancestors \'self\'"
While the last two (X_FRAME_OPTIONS, CONTENT_SECURITY_POLICY) are about preventing clickjacking attacks, but also blocks resources to be embedded in iframes (etc). This could be not desired, e.g. by issue collector. There's a way to exclude resources from clickjacking protection. For details see HttpSecurityConfig.
During the setup HttpSecurityConfig is not present, so that each HTTP response will contain clickjacking protection.
All assets will have clickjacking protection as well.
Since:
7.6
  • Constructor Details

    • HttpSecurityStep

      public HttpSecurityStep()
  • Method Details