Quellcode durchsuchen

try to fix cors

ilya_shyian vor 2 Jahren
Ursprung
Commit
5e9498ac4d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      store_back/prod.py

+ 1 - 1
store_back/prod.py

@@ -4,6 +4,6 @@ from datetime import timedelta
 
 
 CSRF_TRUSTED_ORIGINS = ["http://188.72.209.29"]
-ALLOWED_HOSTS = ["http://188.72.209.29"]
+ALLOWED_HOSTS = ["http://188.72.209.29","127.0.0.1","http://127.0.0.1:8000"]
 SECURE_HSTS_SECONDS = 2_592_000