Forums

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

Getting CORS error when I make use of REST API call from jira to salesforce.

Sahana Rama Hegde July 4, 2019

Hi,

I am creating a plugin in JIRA. From jira I need to push list of issues into salesforce using this plugin. I am making REST API calls in Javascript browser. I am making use of AP.request 

image.png

When I try to make REST API calls to salesforce, I am getting CORS error. Please help me out with this   

2 answers

1 vote
Sahana Rama Hegde July 4, 2019

I added the origin URL  in my whitelist field. Still I am getting this error.

0 votes
Oliver Siebenmarck _Polymetis Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2019

Hi Sahana,

AP.Request does not strike as the correct approach here, as that module is meant to contact the Jira instance your app is running on, not a third party tool like Salesforce.

Also, you should check your Salesforce configuration. I might be wrong here, but I believe that Salesforce requires you to whitelist certain origins before accepting them.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events