Skip to content

Commit

Permalink
azure hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-bazad committed Jun 12, 2024
1 parent d7824a9 commit b47dd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

SECRET_KEY = os.environ.get('SECRET')
ALLOWED_HOSTS = [os.environ.get('WEBSITE_HOSTNAME')]
CSRF_TRUSTED_ORIGINS = ['https://' + os.environ.get('WEBSITE_HOSTNAME')]
DEBUG = False
CSRF_TRUSTED_ORIGINS = ['https://' + os.environ.get('WEBSITE_HOSTNAME'), 'http://' + os.environ.get('WEBSITE_HOSTNAME')]
DEBUG = True

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
Expand Down

0 comments on commit b47dd68

Please sign in to comment.