Skip to content

Commit

Permalink
Update CSRF to allow all defang.dev domain
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Sep 9, 2024
1 parent 0af87e1 commit ce6183c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/django-postgres/app/crm_platform/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ALLOWED_HOSTS = ['*']

CSRF_TRUSTED_ORIGINS = [
'https://*.prod1.defang.dev',
'https://*.defang.dev',
'http://localhost:8000',
]

Expand Down
4 changes: 2 additions & 2 deletions samples/django/app/defang_sample/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@

# CSRF
CSRF_TRUSTED_ORIGINS = [
'https://*.prod1.defang.dev'
'https://*.defang.dev'
]

if DEBUG:
CSRF_TRUSTED_ORIGINS = [
'http://localhost:8000',
]
]

0 comments on commit ce6183c

Please sign in to comment.