“XSRF check failed” was disply in browser when I configured Mail Server at first
my env as below:
Operating system:Linux2.6.32-431.el6.x86_64
Version4.0.2
Build number1427
Build date2020-05-18
This is usually caused by Crowd rejecting the browser request because the request origin/referrer does not match the URL Crowd thinks it is running on. It often happens when Crowd is accessed through a reverse proxy, load balancer, HTTPS offload, or a URL different from the configured base URL.
For Crowd, Atlassian notes that XSRF warnings are generally logged when the request origin does not match its target, and recommends accessing Crowd through the exact configured base URL. If there is a reverse proxy, the Tomcat connector should include the correct proxyName, proxyPort, and scheme values. [support.at...assian.com]
Check that you are accessing Crowd using the same URL configured as Crowd’s base URL.
For example, avoid mixing:
Use only the configured public URL.
If Crowd is behind Apache, Nginx, F5, ELB, or another proxy, update:
Look for the HTTP connector and add values similar to:
A community answer for a Crowd XSRF issue reported that adding proxyName, proxyPort, and scheme to Crowd’s server.xml fixed the problem when Crowd was behind Nginx or Apache. [community....assian.com]
Example:
Then restart Crowd.
If this happened only once during initial Mail Server configuration, also try:
Do not try to disable XSRF protection as a workaround. The better fix is to make sure Crowd’s public URL, reverse proxy headers, and Tomcat connector settings are consistent.
scheme, proxyName, and proxyPort in server.xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.