When request HTTPS-POST on rest api, it returns 403 XSRF check failed. How should I config it correctly.
I am trying to use confluence docker behind nginx-proxy with SSL. I cannot find a complete blog or post which guide step by step. I have tried with HTTP, everything works well after turning off collaborative Editing.
My current setting works well at HTTPS - GET. It can load create/update page and save the post. However it fails with HTTPS-POST on rest api.
Trial 1: current setting
Result: most works well. it can edit and save page.
except HTTP-POST /rest i.e. cannot insert image, cannot save draft.
Trial 2:
setting --env SCHEME and SECURE which are contribute to server.xml.
- CATALINA_CONNECTOR_SCHEME=https
- CATALINA_CONNECTOR_SECURE=true
Result: everything returns 502
REFERENCE
https://confluence.atlassian.com/doc/confluence-installation-guide-135681.html
https://hub.docker.com/r/atlassian/confluence-server
https://confluence.atlassian.com/doc/running-confluence-behind-nginx-with-ssl-858772080.html
Collaborative Editing Related
https://confluence.atlassian.com/conf613/administering-collaborative-editing-964961548.html
https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html
Hello Wayne,
Thank you for sending over very detailed notes, instructions, and screenshots for your issue. The key item I’m interested in is that you said you’re able to have a GET call response but your POST calls fail now with a 502 response. This is telling us that you’re able to respond with information but unable to pass information through your proxy. While I’m not adept with nginx, I have used reference material in the past to help others in similar situations. We do have a specific article which covers configuring nginx to proxy requests to Confluence. We would suggest reviewing this article to see if it helps with your Confluence instance accepting connections. You may find this article at How to use NGINX to proxy requests for Confluence.
If you’re still having the issue please do let us know and we will give a best effort to figure out what the cause might.
Regards,
Stephen Sifers
Plan, prioritize, and deliver marketing projects seamlessly. See how Jira supports your team's success. Start today!
Start now! 🚦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.