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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.