[Jira 10] XSRF check failed

Long Nguyen-Thanh November 3, 2024

 

Hi everyone,

I'm part of a development team working on a Jira Data Center add-on.

I’m currently facing an issue:

In the issue view screen, my add-on can successfully upload a new file to an issue attachment through a POST request, which works fine for Jira 9.x. However, after upgrading to Jira 10, the same POST request to upload files returns a 403 error: "XSRF check failed."

I’ve verified that the atlassian.xsrf.token value exists in the cookie, yet the request still returns a 403 error. I also tried adding the X-Atlassian-Token header with the same value as atlassian.xsrf.token, but the request continues to fail with a 403 "XSRF check failed."

Does anyone know how to retrieve the XSRF token properly and pass it to the backend in a request?

2024-11-04_12-00.png

 

2 answers

0 votes
Mateusz Daleki _Codedoers_
Contributor
February 10, 2025

Hi Guys,

Providing a valid `atl_token` value in a query params solves that.

BR

0 votes
Harsh Agarwal [AIO Tests]
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2024

I am facing the same problem. Are you able to figure out a solution?

Nguyen Thanh Long 20222169M January 7, 2025

Hi @Harsh Agarwal [AIO Tests] , currently I don't have any solutions about this :((

What about you?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
10.0.0
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events