Forums

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

Getting CORS error while calling jira rest api from angular

gowtham mahes April 1, 2022

I am developing one angular where i have to create issue from angular to jira. For that, i am trying to integrate Jira server rest api from my angular code. But it is throwing cors issue.

Have whitelisted my angular url domain in jira whitelist

Jira instance is running in server
Angular code running in different server
Jira version 8.7.1
Angular version 10.

Attached error snap:

Error Jira.PNG

1 answer

0 votes
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2022

Hi @gowtham mahes 
I hope you are well.

By default, Jira comes with a clickjacking protection enabled for any request.

The following KB article has the information about it: Security headers in JIRA .

On Jira, this is an all-or-nothing type of configuration and we have an open feature request for that: JRASERVER-67896 - Enhancement on the clickjacking response headers for Jira.

On that feature we have a workaround that can be applied on proxy/LB level to allow requests from specific domains.

I hope that helps.

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer