Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

Suggest an answer

Log in or Sign up to answer