The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • I am getting XSRF check failed for JIRA API even after I add 'X-Atlassian-Token': 'no-check' header

I am getting XSRF check failed for JIRA API even after I add 'X-Atlassian-Token': 'no-check' header

vindhya patlolla
July 31, 2025

I am trying to integrate JIRA APIs in my Cypress framework. I am able to perform (JIRA API) GET call , but when I try POST or PUT I am get below response

Status: 403 

Body: XSRF check failed

Here is my request header

'Content-Type': 'application/json',
'X-Atlassian-Token': 'no-check',
'Authorization': 'Bearer ' + token

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jim Knepley - ReleaseTEAM
Atlassian Partner
July 31, 2025

Hi @vindhya patlolla , welcome to the community.

Which API endpoint are you calling?

vindhya patlolla
July 31, 2025

When I try below GET call it's working

https://jira.abc.dev/rest/atm/1.0/testrun/<testCycleKey>

But, when I try below POST call I am getting XSRF check failed, this issue I am facing when I try from my automation framework. But same call working when I try with Bruno/Postman

https://jira.abc.dev/rest/atm/1.0/testrun/<testCycleKey>/testcase/<testCaseKey>/testresult

Jim Knepley - ReleaseTEAM
Atlassian Partner
July 31, 2025

If the call works from Postman, then that suggests an issue with your automation framework. Perhaps it's not sending user-specified "X-" headers deliberately?

vindhya patlolla
August 1, 2025

Thank you