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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.