Skip to main content
Skip table of contents

Setting Up CORS Filter in JIRA

Sometimes Structure Gadget fails to load correctly in Confluence. You might see missing icons or the application can fail to work.

This may happen because of a known Jira issue that prevents the Structure gadget from loading resources from Jira when it's being served in Confluence on another web domain.

To work around this problem, you can set up a CORS filter in the Tomcat server that runs Jira (Nginx users may want to consider this alternative Nginx Configuration Option):

  1. Copy cors-filter-2.4.jar, java-property-utils-1.9.1.jar from CORS docs to the /lib directory under Jira's installation folder.
  2. Edit the file JIRA_INSTALL_DIR/atlassian-jira/WEB-INF/web.xml and add the following:

     <!-- ==================== CORS configuration ====================== -->
            <param-value></param-value>  <!-- use http: or https: depending on your configuration -->
            <param-value>GET, POST, HEAD, OPTIONS, PUT, DELETE</param-value>
  3. Restart Jira


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.