We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30bd1a commit 79f973eCopy full SHA for 79f973e
settings.py
@@ -56,3 +56,11 @@
56
# https://docs.djangoproject.com/en/3.2/topics/http/sessions/
57
58
SESSION_ENGINE = "api.models.session"
59
+
60
+# TODO: delete these test settings and/or transfer to py package
61
+# pylint: disable-next=wrong-import-order,wrong-import-position
62
+import json
63
64
+CSRF_COOKIE_DOMAIN = os.getenv("CSRF_COOKIE_DOMAIN")
65
+CSRF_COOKIE_SAMESITE = os.getenv("CSRF_COOKIE_SAMESITE", "Lax")
66
+CSRF_TRUSTED_ORIGINS = json.loads(os.getenv("CSRF_TRUSTED_ORIGINS", "[]"))
0 commit comments