Skip to content

Commit

Permalink
Merge pull request #185 from ricardobranco777/fix_csrf
Browse files Browse the repository at this point in the history
Add base-url to CSRF_TRUSTED ORIGINS to fix CSRF issue
  • Loading branch information
asmorodskyi authored Jan 16, 2023
2 parents 54b9163 + 3f5f6e2 commit 00102ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

ALLOWED_HOSTS = ['*']

CSRF_TRUSTED_ORIGINS = ['https://' + os.getenv('DOMAINNAME', os.uname().nodename)]

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'


Expand Down

0 comments on commit 00102ed

Please sign in to comment.