Cors error while running jira rest api

Maheswari December 15, 2018

I am running jira service desk in my local on port 8080. And my local application on port 4200.

When i run the api from localhost:4200 its getting cors error.

I added http://localhost:4200 to whitelist but still it giving CORS error.

Then i added cors filter in web.xml file and removed http://localhost:4200 from whitelist. That case it is giving XSRF check failed. I tried with X-Atlassian-Token: no-check/nocheck with no luck.

Then i added both cors filter and whitelist. That case browser giving multiple access control allow origin not allowed error.

I stuck with calling jira api.

Please anyone help.

0 answers

Suggest an answer

Log in or Sign up to answer