Unable to Add External Gadget Due to Mixed Content

お困りですか?

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

コミュニティに質問

症状

When trying to add a JIRA Gadget to a Confluence page (e.g. Sprint Health Gadget), Confluence asks to enter the configuration but does not allow the user to insert the gadget:

(warning) Please complete the configuration in the preview area first

The following appears in the browser's Web Console (developer tools):

Blocked loading mixed active content "http://domain/jira/s/d41d8cd98f00b204e9800998ecf8427e/en_USeqa1sb-1988229788/6262/72/b5232f34185..."
Blocked loading mixed active content "http://ironman/jira/s/d41d8cd98f00b204e9800998ecf8427e/en_USeqa1sb-1988229788/6262/72/b5232f34185..."
Blocked loading mixed active content "http://ironman/jira/s/d41d8cd98f00b204e9800998ecf8427e/en_USeqa1sb-1988229788/6262/72/b5232f34185..."
Blocked loading mixed active content "http://ironman/jira/s/d41d8cd98f00b204e9800998ecf8427e/en_USeqa1sb-1988229788/6262/72/b5232f34185..."
ReferenceError: AJS is not defined

var gadget = AJS.Gadget({

Example of what happens:

診断

User is running Confluence or JIRA over SSL, but not both.

原因

When just one of the applications is running over SSL, the browser block the request because of the Mixed Content Blocking setting of the browser, which is enabled by default.

回避策

Disable the Mixed Content Blocking setting of your browser:

Firefox:

  1. In the address bar, type "about:config" and press Enter.
  2. Click the "I'll be careful, I promise!" button.
  3. In the search field, type "block_active".
  4. Set the value for the one search result ("security.mixed_content.block_active_content") to "false".

Google Chrome:

  1. Click the shield icon on the right side of the address bar. 
  2. In the icon dialog box, click on Load unsafe script.
  3. The page will refresh and display any mixed content. The URL in the address bar will show https crossed out to indicate that the page is displaying both secure and non-secure items.

Internet Explorer

  1. Scroll to the bottom of the screen, and click Show all content
  2. The page will refresh and display any mixed content.

ソリューション

  • Set both of your applications to run on HTTP or HTTPS

最終更新日 2018 年 11 月 2 日

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

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