Browse Source

try to fix cors

ilya_shyian 2 years ago
parent
commit
5e9498ac4d
1 changed files with 1 additions and 1 deletions
  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