JIRA Rest API XSRF Check failed

dev2@sims May 26, 2021

Hi all

It seems many users have this problem but I have still not found a proper solution within all of the many forum posts I have been through.

I'm using the Jira Rest API to Get a list of issues for a specific project and to get all projects for an account and these requests work perfectly within postman and my web app, in which I am using axios within javascript. Using OAuth 2.0 Authentication

I am using

'https://api.atlassian.com/ex/jira/cloud_id_here/rest/api/3/issue

As soon as I try to create an issue via POST in the web app, I get an error 403 XSRF Check failed, however, all my post requests to create issues do work through postman or insomnia.

I have set all the correct permissions in my Atlassian developer console, I have tried adding and removing the 'User-Agent tag', as well as setting the 'X-Atlassian-Token' to 'no-check.

I have tried the Origin and Host tags, and none of these options make any difference.

I have tried using fetch with all the different modes for cors with no success.

 

Am I missing something? Please assist me and let me know if any other information is required.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events