Explorar el Código

try to fix cors

ilya_shyian hace 2 años
padre
commit
5e9498ac4d
Se han modificado 1 ficheros con 1 adiciones y 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"]
+ALLOWED_HOSTS = ["http://188.72.209.29","127.0.0.1","http://127.0.0.1:8000"]
 SECURE_HSTS_SECONDS = 2_592_000