Hello folks,
we have some trouble while getting the new confluence license (renewal) to use.
Setup:
Confluence instance (6.7.1) on premise (subdomain.example.com/confluence) with Apache proxy behind a reverse proxy (for internet access), and https path is enforced (via the Apache proxy).
Scheme (https), proxy details (subdomain.example.com) and so on in server.xml have been entered correctly.
But now while trying to enter the new license key in admin center, the XSRF-Check fails.
We already tried if a slightly changed proxy (subdomain.example.com/confluence) but it didn't help either.
So the here on the forums most given answers / sources to the XSRF-problem didn't help us.
https://community.atlassian.com/t5/Confluence-questions/XSRF-check-failed-on-Confluence/qaq-p/616998
Can you provide us with another idea?
Or is it possible to deativate the XSRF-check? (i know that's not a good idea - but i wan't to get it done).
Eureka!
The solution was all the time right before our very eyes...
Apparently the XSRF check uses the webservers and webbrowsers referer ability. But for security reasons we deactivated website referer in some of our webserver configurations and this way there have been no referer headers at all.
So obvious XSRF check can't work then *facepalm*.
Deacivating referer policy, update license, activating referer policy again - done, fine, thank you.
Best Regards,
Diana
Diana,
So the suggestions from License update "XSRF check failed" didn't help, including connecting to the server directly bypassing the proxy, or disabling XSRF token?
Confluence requires an XSRF token to be present on comment creation, to prevent users being tricked into unintentionally submitting malicious data. All the themes bundled with Confluence have been designed to use this feature. However, if you are using a custom theme that does not support this security feature, you can disable it.
Please carefully consider the security risks before you disable XSRF protection for comments in your Confluence installation.
Read more about XSRF (Cross Site Request Forgery) at cgisecurity.com.
To configure XSRF protection for comments:
Choose the cog icon, then choose General Configuration
Choose Security Configuration in the left-hand panel.
Choose Edit.
Uncheck the Adding Comments checkbox in the XSRF Protection section, to disable XSRF protection.
Choose Save.
It was mentioned on the article but you hadn't mentioned the results of that, so please let me know which suggestions you tried already and what were the results of that.
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Shannon,
thank you for your answer.
Bypassing the proxy would have a lot of implications due to our network setup, so any other solution is preferred.
That is to say disabling the "XSRF protection for comments" will also have an effect on the license input field? We thought it would work "for comments" only but not global. Ok we will try that option and let you know it it worked out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello again,
unfortunately disabling the XSRF protection for comments didn't help - the license input field performs the XSRF check nontheless.
Best Regards,
Diana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Diana,
My apologies, I hoped that would have worked.
If I were you, I would just manually update the license, then you don't need to worry about the XSRF protection error right now.
However, you still want to fix the issue that is causing your XSRF issue. This means that something hasn't been set up properly with your proxy, and it can cause issues in the future.
I would recommend reviewing the following article and having a look at your server.xml to see how you set up the connector.
Regards,
Shannon
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.