Skip to content

Commit

Permalink
Update settings for CSRF and allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
tpstudy committed Oct 10, 2024
1 parent 5102158 commit eaaf90f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', get_random_secret_key())

# Enable/Disable DEBUG Mode
DEBUG = os.environ.get('DJANGO_DEBUG', 'True') == 'True'
DEBUG = False

# Docker HOST
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['adminlte-fmd6h0akefftarcq.canadacentral-01.azurewebsites.net', 'localhost', '127.0.0.1']

# Add here your deployment HOSTS
CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://localhost:5085', 'http://127.0.0.1:8000', 'http://127.0.0.1:5085']
CSRF_TRUSTED_ORIGINS = ['https://adminlte-fmd6h0akefftarcq.canadacentral-01.azurewebsites.net']

#Render Context
RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME')
Expand Down
Binary file modified db.sqlite3
Binary file not shown.

0 comments on commit eaaf90f

Please sign in to comment.