Forums

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

Error on accessing jira agile rest Api

Ruvin Thulana
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!
September 10, 2018

Hey,

I am new to jira I am trying to make jira plugin using angular.So I want to connect to connect to jira api.

This is the api that I am using - ( https://developer.atlassian.com/cloud/jira/software/rest/ )

But when I create a get request by using basic token in POSTMAN it returns response without error.When I call get request in my angular app  it gives an error  (error-Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.) .

But when web security disabled in chrome browser the request works fine.

What is the reason for that and how should i solve it.

my error and code id shown below 

Capture1.PNGCapture2.PNG

1 answer

0 votes
Keri
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2018

Hey Ruvin, 

 

It looks like the error is due to CORS. Unfortunately, currently JIRA Cloud doesn't allow CORS for REST API connections. We do have a a feature request for it :-

Please take a moment to look through the comments and vote for the issue to show your support. 

 

Cheers,

Keri

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events