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

13 lines
522 B
Diff
Raw Permalink Normal View History

2022-12-27 20:40:33 +00:00
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"
2023-08-30 18:34:09 +00:00
+CSRF_TRUSTED_ORIGINS = CONFIG.get("csrf.trusted_origins")
2022-12-27 20:40:33 +00:00
LANGUAGE_COOKIE_NAME = "authentik_language"
SESSION_COOKIE_NAME = "authentik_session"
2023-08-30 18:34:09 +00:00
SESSION_COOKIE_DOMAIN = CONFIG.get("cookie_domain", None)