Skip to content

Commit

Permalink
fix: tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom JEANNESSON committed Jan 11, 2024
1 parent 0ff5c55 commit b4e69b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
ALLOWED_HOSTS = ["django", env("NAPSE_API_DOMAIN")]
ALLOWED_HOSTS = ["django", "localhost", env("NAPSE_API_DOMAIN")]
print("ALLOWED_HOSTS", ALLOWED_HOSTS)


Expand All @@ -36,5 +36,5 @@ def set_busy_timeout(sender, connection, **kwargs):

connection_created.connect(set_busy_timeout)

CORS_ALLOWED_ORIGINS = ["http://django", f"http://{env('NAPSE_API_DOMAIN')}"]
CSRF_TRUSTED_ORIGINS = [f"http://{host}" for host in ALLOWED_HOSTS]
CORS_ALLOWED_ORIGINS = [f"http://{host} " for host in ALLOWED_HOSTS] + ["http://localhost:8888"]
CSRF_TRUSTED_ORIGINS = [f"http://{host} " for host in ALLOWED_HOSTS] + ["http://localhost:8888"]

0 comments on commit b4e69b6

Please sign in to comment.