Skip to content

Commit

Permalink
Update production settings (allowed hosts)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed May 15, 2023
1 parent 172b3a4 commit d27b575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/backend/production_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
DEBUG = False

# Security settings
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['.commanderspellbook.com']
CSRF_TRUSTED_ORIGINS = [
'https://commanderspellbook.com',
'http://localhost',
'https://backend.commanderspellbook.com',
]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

Expand Down

0 comments on commit d27b575

Please sign in to comment.