Add setting and documentation for fixing CSRF errors (#349)

* Add documentation and setting for solving CSRF errors

* Improve proxy setup docs

* Link to reverse proxy documentation

* Fix link
This commit is contained in:
Sascha Ißbrücker
2022-10-05 10:01:44 +02:00
committed by GitHub
parent 53be77aade
commit 1c3651e91d
6 changed files with 103 additions and 1 deletions

View File

@@ -198,3 +198,9 @@ if LD_ENABLE_AUTH_PROXY:
# Configure logout URL
if LD_AUTH_PROXY_LOGOUT_URL:
LOGOUT_REDIRECT_URL = LD_AUTH_PROXY_LOGOUT_URL
# CSRF trusted origins
trusted_origins = os.getenv('LD_CSRF_TRUSTED_ORIGINS', '')
if trusted_origins:
CSRF_TRUSTED_ORIGINS = trusted_origins.split(',')