Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ DB_PORT=5432
WEBSITE_URL = http://localhost:8000
PASS_RESET_URL_SUFFIX = reset-password/
ACCOUNT_CONFIRMATION_URL_SUFFIX = confirm-email/

# trusted origins
CSRF_TRUSTED_ORIGINS=http://localhost:8000,https://prod-api.unitystation.org,https://dev-api.unitystation.org
3 changes: 3 additions & 0 deletions src/central_command/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@

ALLOWED_HOSTS = ["*"] if DEBUG else ["localhost", "127.0.0.1"]

_csrf_origins = os.environ.get("CSRF_TRUSTED_ORIGINS", "")
CSRF_TRUSTED_ORIGINS = [origin.strip() for origin in _csrf_origins.split(",") if origin.strip()]

INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
Expand Down
Loading