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

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

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

Atlassian Community Events