Forums

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

Enable CORS for JIRA REST API calls via JAVASCRIPT

Archana Sawant
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!
July 3, 2018

Getting below error, while trying to give rest api call from our javascript code. 

Failed to load http://<<hostname>>/rest/api/2/issue/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<<myapplicationurl>>' is therefore not allowed access.

 

For more details we are trying to create JIRA bugs using rest api from our application.

JIRA Software version is. 7.10

 

We tried out the whitelist configuration, however it is not helpful. 

 

Didn't find clear solution from posts around this issue. 

2 answers

1 accepted

0 votes
Archana Sawant
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!
July 4, 2018

Suggested solution worked for us.. Thanks @Mirek

Suggest an answer

Log in or Sign up to answer