Jira Gadgets not working properly with Confluence behind Apache

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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:

    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.

Last modified on Oct 20, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.