Skip to content

Commit

Permalink
Add SITE_DOMAIN to ALLOWED_HOSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
vincevd1 committed May 15, 2024
1 parent f8d5751 commit a60d641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

CORS_ORIGIN_ALLOW_ALL = DEBUG

ALLOWED_HOSTS = ["localhost", "localhost:5173","127.0.0.1"] if DEBUG else [SITE_DOMAIN]
ALLOWED_HOSTS = ["localhost", "localhost:5173", "127.0.0.1", SITE_DOMAIN] if DEBUG else [SITE_DOMAIN]
CSRF_TRUSTED_ORIGINS = [BASE_URL]

ROOT_URLCONF = "server.urls"
Expand Down

0 comments on commit a60d641

Please sign in to comment.