ayaports/user/authentik/root-settings-csrf_trusted_origins.patch

12 lines
522 B
Diff

diff --git a/authentik/root/settings.py.orig b/authentik/root/settings.py
index ebfc471..ce1ef3b 100644
--- a/authentik/root/settings.py.orig
+++ b/authentik/root/settings.py
@@ -56,6 +56,7 @@ AUTH_USER_MODEL = "authentik_core.User"
CSRF_COOKIE_NAME = "authentik_csrf"
CSRF_HEADER_NAME = "HTTP_X_AUTHENTIK_CSRF"
+CSRF_TRUSTED_ORIGINS = CONFIG.get("csrf.trusted_origins")
LANGUAGE_COOKIE_NAME = "authentik_language"
SESSION_COOKIE_NAME = "authentik_session"
SESSION_COOKIE_DOMAIN = CONFIG.get("cookie_domain", None)