Creating a page in Firefox causes the create dialog to wait indefinitely

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

問題

When using Mozilla Firefox to create a new page in Confluence, the waiting icon displays and the blueprints do not display. This does not occur in Google Chrome.

 

atlassian-confluence.log に次のメッセージが出力される。

atlassian-confluence.log
2015-11-17 12:06:36,537 WARN [http-nio-8090-exec-6] [common.security.jersey.XsrfResourceFilter] passesAdditionalBrowserChecks Additional XSRF checks failed for request: http://confluence.mycompany.com/rest/analytics/1.0/publish/bulk , origin: null , referrer: null , credentials in request: true , allowed via CORS: false

診断

環境

  • Confluence 5.8.13 or above
  • Mozilla Firefox browser
  • Confluence has custom HTML in the <head> section (or content="never")

     <meta name="referrer" content="none">

原因

Firefox is not sending the Referrer: header when the Create button is clicked.

In versions of Confluence before 5.8.13, the Create button was rendered as a HTML <a> tag.

<a id="create-page-button" class="aui-button aui-style aui-button-primary aui-nav-imagelink" title="Create Content (c)" href="/pages/createpage.action?spaceKey=DGN&fromPageId=4292610">
<span>Create</span>
</a>

From Confluence 5.8.13 this was changed to a JQuery activation

<a id="create-page-button" href="#" class="aui-button aui-style aui-button-primary aui-nav-imagelink" title="Create Content (c)">
<span>Create</span>
</a>

Firefox added a feature based on a W3 specification where pages can include a HTML meta tag that will stop the browser sending the Referer: header. This is added in Confluence in Confluence Admin > General Configuration > Custom HTML.

Firefox without the Referer header

Firefox with the Referer header

In Confluence, if there is no Referer: header then the XSRF checks will throw an error and content will not render.

ソリューション

You will need to remove the HTML meta tag.

  1. Go to Confluence Admin > General Configuration > Custom HTML
  2. Click Edit
  3. Remove the offending <meta name="referrer" content="none">
  4. Click Save

If this does not resolve your problem, please review Cross Site Request Forgery (CSRF) protection changes in Atlassian REST for more information.

最終更新日 2018 年 11 月 2 日

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

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