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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.