Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I invoke jira REST API in use Confluence user marco by javascript. And error reported.
After get above error, I do below action:
1. Enable allow list between my Jira and Confluence, both inbox and outbox are in the allow list and show green on both allow list page;
2. My Jira behind nginx 1.20 reverse proxy. So I add below configuration in my nginx.conf
add_header 'Access-Control-Allow-Origin' 'https://mydomain.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization';
if ($request_method = 'OPTIONS')
{ add_header 'Access-Control-Allow-Origin' 'https://mydomain.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization';
add_header 'Content-Length' 0; return 204; }
But still got above CORS error.
Please help on this case. I had been blocked for 1 day.
Thank you very much!
Hi @Owen
This has been answered earlier, see cors-error-with-rest-api.
There is also a KB article on it, getting-cors-errors-when-accessing-confluence-resources
Hi @Owen
The you are impacted by the web.xml change that Atlassian implemented in version above 7.15
See, CONFSERVER-80056
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.