Browse Source

Update base.py

pull/2423/head
VasileKarpa 6 months ago
parent
commit
3a96407bd7
1 changed files with 2 additions and 2 deletions
  1. 4
      backend/config/settings/base.py

4
backend/config/settings/base.py

@ -226,14 +226,14 @@ if DATABASES["default"].get("ENGINE") == "sql_server.pyodbc":
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SESSION_COOKIE_SECURE = env.bool("SESSION_COOKIE_SECURE", False)
CSRF_COOKIE_SECURE = env.bool("CSRF_COOKIE_SECURE", False)
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", ["http://127.0.0.1:8080", "http://172.20.10.3:3000", "http://192.168.1.78:3000"])
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", ["http://127.0.0.1:8080", "http://172.20.10.3:3000", "http://192.168.1.78:3000", "http://10.20.89.136:3000"])
# Allow all host headers
ALLOWED_HOSTS = ["*"]
if DEBUG:
CORS_ORIGIN_ALLOW_ALL = True
CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:3000", "http://0.0.0.0:3000", "http://localhost:3000", "http://127.0.0.1:8080", "http://172.20.10.3:3000", "http://192.168.1.78:3000"]
CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:3000", "http://0.0.0.0:3000", "http://localhost:3000", "http://127.0.0.1:8080", "http://172.20.10.3:3000", "http://10.20.89.136:3000", "http://192.168.1.78:3000"]
CSRF_TRUSTED_ORIGINS += env.list("CSRF_TRUSTED_ORIGINS", [])
# Batch size for importing data

Loading…
Cancel
Save