Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I use authorization header with CORS in JIRA REST API

Jeideep Ramamoorthy Renganathan September 3, 2015

Hi,

 

I am using JIRA version v6.1.2. I am trying to access JIRA Rest api via CORS after enabling my domain via the whitelist page and am getting the below error:-

 

XMLHttpRequest cannot load [URL]. Request header field Authorization is not allowed by Access-Control-Allow-Headers.

Does it mean I cannot access the API with Authorization header? Please advise. Thanks.

 

Jeideep.

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Trevor Reed October 18, 2016

Struggling with the same issue. Unless I'm missing something, it seems that the JIRA REST API is essentially unusable when doing CORS requests.

0 votes
Sean_Wilson November 6, 2015

I'm having the exact same issue using JIRA 6.4.10. I've tried this which might help you. 

Unfortunately in our case it just ended up duplicating the "Access-Control-Allow-Credentials" and "Access-Control-Allow-Origin" headers. Still no luck with getting the "Authorization" header added.

TAGS
AUG Leaders

Atlassian Community Events