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?
