XSRF Check Failed on Jira Server, Error 403

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

XSRF Check Failed on Jira Server, Error 403

2,076件の閲覧回数
thisisbarua
NXP Employee
NXP Employee

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.

PrBvy.png

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

tghbsgfhb.PNG

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 件の賞賛
返信
0 返答(返信)