Forums

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

XSRF Check Failed on Jira Server, Error 403

Shuvo Barua
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2022 edited

I am trying to call a POST (also tried a DELETE) method of a Jira Server rest api from an angular application.

Unfortunately, I am getting 403 error and it's saying XSRF check failed.

enter image description here

I tried adding X-Atlassian-Token: no-check but it does not do the trick for me.

Also I tried replacing the header's value of 'User-agent' with a dummy one but I am getting

enter image description here

The header is as follows

let headers = new HttpHeaders().set('content-type', 'application/json')
                               .set('X-Atlassian-Token','no-check')
                               .set('User-Agent','XX')
                               .append('Authorization', 'Basic ' + btoa(this.loginModel.username + ":" + this.loginModel.password));

 I am getting completely frustrated because of this. Can anyone help me in this regard?

0 answers

Suggest an answer

Log in or Sign up to answer