Widget Connector not Displaying Embedded Content when Using Firefox or Chrome
問題
The Widget Connector macro and its embedded content (e.g. YouTube videos) do not render when viewing a page and there are no errors appear in the UI or in the atlassian-confluence.log:
診断
環境
- You are using Firefox 23+ or Chrome 21+
- Your Confluence is running over SSL (HTTPS)
原因
Firefox 23 added a security feature to block mixed content, as illustrated by Mozilla in this blog post: http://blog.mozilla.org/security/2013/05/16/mixed-content-blocking-in-firefox-aurora/
Google also introduced this in Chrome 21.
Essentially, when visiting a website running over SSL (i.e. using HTTPS protocol), any active content on the page running over non-SSL (i.e. using HTTP protocol) will be blocked by Firefox.
回避策
Option 1: Use HTTPS links instead of HTTP
- Websites like YouTube support HTTPS when embedding content. In YouTube's case you simply need to change the 'http' in the URL to 'https'.
Option 2: Disable the mixed-content protection
- Click the shield icon next to your address bar, and select "Disable Protection on This Page" (example in screenshot is from Firefox, for Chrome the icon is on the right of the address bar):
- Voilà!
An Improvement Request has been filed to display a more user-friendly message in the Widget Connector when mixed content is detected, or for Confluence to convert the embedded URL from http to http automatically. This is being tracked here: CONF-30501 - Getting issue details... STATUS