The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

CORS error

Андрей
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!
October 25, 2024

Hello! Please tell me what's wrong with my code? I'm trying to use the "Send" button to send data to a remote server where a Flask application is located. Flask app has CORS, but I still get an error.

{"code":403,"message":"Invalid CORS request"}

I use resolver.define. Resolver.define doesn't even fire.

manifest.yml

permissions:

  external:

    fetch:

      backend:

        - https://domen

 

index.js
try {

    const response = await fetch('https://domen', {

      method: 'POST',

      headers: {

        'Content-Type': 'application/json',

      },

      body: JSON.stringify({ date, time }),

    });

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
October 26, 2024

HI @Андрей 

 

Atlassian Developer Community is the best place to ask this sort of questions. You'll find a lot of experienced developers there who can provide insights specific to Forge and Jira integrations.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events