Hello Dear community,
We are building a plugin for Jira Cloud. The functionality of which will be available in the Dashboard Item.
Unfortunately, we collided with a problem.
When we calling requests to REST API (Jira Cloud), we receive the following information:
Access to XMLHttpRequest at 'https://our-jira-test-server.atlassian.net/rest/api/3/project' from origin 'https://test-server-with-plugin-content.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I noticed that content plugin included to the Dashboard item the embedded in the IFrame, with different origin.
Various attempts to change the header for our requests, such as:
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': '*',
do not bring the expected result.
How can we fix this problem?
Thanks a lot for any help.