REST API calls fail due to Missing XSRF Token
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
When making a call to the Bamboo REST API, for example:
curl -u <bamboouser>:<bamboopass> <bamboo-url>/rest/api/latest/<some-endpoint>The call fails and the following appears in your output:
ERROR:-
java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_COOKIE).
at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66)
at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25)原因
This specific error, XSRF_FAILURE_NO_TOKEN_IN_COOKIE, is caused by the cookie sent to Bamboo missing the atl.xsrf.token.
回避策
To work around this issue, please add the header X-Atlassian-Token: no-check to your API call. For example:
curl -u <bamboouser>:<bamboopass> -H 'X-Atlassian-Token: no-check' <bamboo-url>/rest/api/latest/<some-endpoint>更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。