Skip to content

Commit b37d792

Browse files
authored
Merge pull request #188 from DefangLabs/edw-fix-django-csrf
Update CSRF to allow all defang.dev domain
2 parents 0af87e1 + ce6183c commit b37d792

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/django-postgres/app/crm_platform/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ALLOWED_HOSTS = ['*']
3030

3131
CSRF_TRUSTED_ORIGINS = [
32-
'https://*.prod1.defang.dev',
32+
'https://*.defang.dev',
3333
'http://localhost:8000',
3434
]
3535

samples/django/app/defang_sample/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@
131131

132132
# CSRF
133133
CSRF_TRUSTED_ORIGINS = [
134-
'https://*.prod1.defang.dev'
134+
'https://*.defang.dev'
135135
]
136136

137137
if DEBUG:
138138
CSRF_TRUSTED_ORIGINS = [
139139
'http://localhost:8000',
140-
]
140+
]

0 commit comments

Comments
 (0)