Insight widget not loading graph in Confluence

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く


問題

The content of the Insight widget is not showing 


診断

環境

Diagnostic Steps

  • If you bring up the browser's developer tools and switch to the Console tab, there are errors as shown in the screenshot above.

    Refused to frame '<Jira_base_URL>' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
    
    Failed to load resource: the server responded with a status of 401 ()

原因

There are security headers blocking the widget content to be loaded as explained here - Security Headers in Jira

ソリューション

Following this KB about security headers in Jira, one of the solutions is to exclude some paths. Here are the steps and the list of paths to be excluded specifically for this issue.

  1. Follow Setting properties and options on startup to determine the file to be edited.
  2. These paths shall be excluded for the widget content to be loaded. There's also an example of how the argument looks like in setenv.bat or setenv.sh.
    1. /rest/gadgets/1.0/
    2. /rest/insight/1.0/
    3. /rest/insight-widgets/

      JVM_SUPPORT_RECOMMENDED_ARGS="-Dcom.atlassian.jira.clickjacking.protection.exclude=/rest/gadgets/1.0/,/rest/insight/1.0/,/rest/insight-widgets/"
  3. Restart Jira for the changes to be applied.
  4. Refresh the Confluence page to load the widget once Jira is back online.



説明 Insight Widget not loading graph in Confluence
製品Jira Service Management, Insight - Asset Management
最終更新日 2021 年 9 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.