CORS on Oauth2 flow

Yaniv Ofek
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!
April 21, 2020

Hi,
I'm trying to integrate Jira api on Chrome extension(using Javascript).
I followed the Oauth 2.o docs: https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/

The first step works fine, but when I try to follow step2 "Exchange authorization code for access token", I'm getting a CORS error:Access to fetch at 'https://auth.atlassian.com/oauth/token' from origin 'chrome-extension://[id]' has been blocked by CORS policy.

I couldn't find much documentation on CORS, would appriciate any help on that

1 answer

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2020

Hello @Yaniv Ofek ,

Welcome to the Atlassian Community!

Please notice that this is not the best place to get help on development related topics. The right resources are listed in https://developer.atlassian.com/resources. 

Specifically:

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events