Skip to content

Commit

Permalink
update csrf origins
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Küng committed Jun 26, 2024
1 parent cf4a9e2 commit 0c13b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion munkiwebadmin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# Azure App Service
if os.environ.get('WEBSITE_HOSTNAME'):
ALLOWED_HOSTS.append(os.environ.get('WEBSITE_HOSTNAME'))
CSRF_TRUSTED_ORIGINS.append(os.environ.get('WEBSITE_HOSTNAME'))
CSRF_TRUSTED_ORIGINS.append("https://" + os.environ.get('WEBSITE_HOSTNAME'))

# debug mode
DEBUG = os.getenv("DEBUG", 'False').lower() in ('true', '1', 't')
Expand Down

0 comments on commit 0c13b9a

Please sign in to comment.