I am looking for a way to make a JIRA REST API call from within my confluence CLOUD app.
There are some topics in this forum but i cant really work out anything with the answers posted there.
I want to have a confluence cloud macro that gets all jira projects, so i would need my macro to call this endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-projects/#api-rest-api-2-project-get
but i somehow get errors when trying to do so in any component in my frontend (directly in the macro) (CORS ERROR).
But when executing the call from within the browser (console), I do not receive any errors.
What am i doing wrong and what would be the correct way to execute the jira rest api endpoints from a confluence cloud app (macro) ?
I do have a CONNECT app , no forge!
I would love a minimal working example regarding this.
It doesnt even matter if i have to call it from the front end or back end, i just want to somehow make it work to execute jira rest api calls from my confluence cloud app.