Explorar o código

try to fix cors

ilya_shyian %!s(int64=2) %!d(string=hai) anos
pai
achega
05c641fbbb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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","127.0.0.1","http://127.0.0.1:8000"]
+ALLOWED_HOSTS = ["http://188.72.209.29","127.0.0.1","http://127.0.0.1:8000","http://188.72.209.29:8000","http://localhost:8000"]
 SECURE_HSTS_SECONDS = 2_592_000