[damned-lies/oscp-testing] fix: csrf error, probably related to django>4.0
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp-testing] fix: csrf error, probably related to django>4.0
- Date: Tue, 26 Apr 2022 16:15:24 +0000 (UTC)
commit 87c988fb62967a12c62f60e4e73eaf820efca826
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Tue Apr 26 18:15:19 2022 +0200
fix: csrf error, probably related to django>4.0
local_settings.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/local_settings.py b/local_settings.py
index ebf8a38b..954eb84a 100644
--- a/local_settings.py
+++ b/local_settings.py
@@ -35,6 +35,7 @@ ALLOWED_HOSTS = [
]
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
EMAIL_HOST = "smtp-int.gnome.org"
EMAIL_SUBJECT_PREFIX = "[DL]"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]