### reproduce step
1. Log in with any user
2. Try to exit
3. Error
p>
### expected behavior
user should log out.
Nextcloud report error :”Access forbidden CSRF check failed”
Nextcloud to configure Nginx cross-region solution
### actual behavior
user clicks logout with error:
“Access forbidden
CSRF check failed”
p>
### solution (configure nginx)
1. The first part is to mapmap in the HTTP in the global configuration (default path /etc/nginx/nginx.conf);
First configure nginx.conf add HTTP map
vi /etc/nginx/nginx.conf
# added to HTTP save
map $http_upgrade $connection_upgrade {
default upgrade; '' close;
}
p>
2. The second part, it is the corresponding nextcloud configuration file (create/etc/nginx/conf. D/nextcloud. Conf) under the span> server IP configuration.
Configure nextcloud.conf inverse configuration file by adding
vi/etc/nginx/conf. D/nextcloud. Conf p>
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
p>
After
configuration is completed, run nginx-t to check, and confirm that there is no error, run nginx-s reload or systemctl restart nginx to restart nginx for effective configuration.
p>
3. After completion, visiting Nextcloud again may appear: reverse proxy domain is not in the trusted_domain of Nextcloud your visiting domain is not in the trusted domain of Nextcloud
#
modify $nextcloud/config/config in PHP trusted_domains parameters can span> p>
Read More:
- Forbidden (403) CSRF verification failed. Request aborted. – Django
- 8、Forbidden (CSRF token missing or incorrect.): /register/
- CSRF verification failed. Request aborted.
- About node error NPM update check failed try running with sudo or get access to the local update
- Solve the problem of general error: 4047 when docker installs MariaDB of nextcloud
- UFIDA’s common package download failed with error forbidden
- egg.js The frame post request reported an error of invalid CSRF token security verification, which has been solved
- Error reported when Windows builds docker image: failed to create LLB definition: 403 Forbidden
- Failed to load resource: the server responded with a status of 403 (Forbidden)
- Urllib2.httperror: http error 403: forbidden solution
- urllib2.HTTPError: HTTP Error 403: Forbidden
- Error 403 Forbidden when using WGet or curl
- Determining IP information for eth0… failed; no link present. Check cable?
- Solve GitHub push error 403 Forbidden while accessing
- GitHub push ErrorThe requested URL returned error: 403 Forbidden while accessing
- Server check fail, please check server 192.168.11.13 ,port 9848 is available , error ={}
- Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings.
- PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
- Copy forbidden in C + +++
- Ganglia cannot access: you don’t have permission to access / ganglia on this server