I’m trying to make a call to an internal Jira endpoint using the fetch function from the React code of a Forge app I have installed on a test Jira Cloud, but I’m having trouble getting the response. The call I am trying to make is a simple call to an internal Jira endpoint that when I monitor the traffic there is a response but when I do it from Forge using Fetch problems arise. What is the problem?
Correctly receiving the response when interacting with the Jira Cloud interface
I can’t get the response from the Forge app code:
fetch('https://wiqu-development.atlassian.net/rest/greenhopper/1.0/rapidviews/recent?maxResults=1&userBoard=true', {
mode: "no-cors",
credentials: 'include',
headers: {
'Authorization': 'Basic <redacted>',
}}).then(r => { console.log(r) });
If you have any questions or additional information you need to answer me, let me know.