1
0
Quellcode durchsuchen

update settings

Laurent Hazart vor 1 Monat
Ursprung
Commit
eb6666a241
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      duhaz_blog/settings.py

+ 6 - 0
duhaz_blog/settings.py

@@ -31,6 +31,12 @@ DEBUG = os.getenv('DEBUG', 'False') == 'True'
 
 ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost,127.0.0.1').split(',')
 
+# CSRF Protection - Domaines de confiance
+CSRF_TRUSTED_ORIGINS = [
+    'https://www.duhaz.fr',
+    'https://duhaz.fr',
+]
+
 
 # Application definition