Jira Gadgets not working properly with Confluence behind Apache

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

After adding any Jira Gadget to Confluence (through the Gadget Feed), the data is partially added to Confluence. The Preview will be blank and it will appear a "Please complete the configuration in the preview area first" message, but users are unable to complete or add any data.

Environment

  • Confluence Server or Data Center

  • Confluence and Jira are running behind an Apache reverse-proxy

Diagnosis

  • The preview area will be blank and users are unable to add any data to it.

  • The message "Please complete the configuration in the preview area first" will appear next to the Insert button.

  • The Insert button will be inactive.

  • The Web Browser Console will display the following message:

    1 Refused to load the stylesheet '<URL>' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' 'unsafe-eval' ". Note that 'style-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

Cause

  • The Apache reverse-proxy is blocking external resources (fonts, scripts, XML).

Solution

  • Disable the Apache proxy; or

  • Update the Apache proxy configuration to allow downloading and uploading resources from Jira's server.

Updated on March 13, 2025

Still need help?

The Atlassian Community is here for you.