Skip to content

Commit ee87792

Browse files
committed
main
adjust settings for CSRF
1 parent 0ef404c commit ee87792

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/settings.py

+8
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,11 @@
133133
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
134134

135135
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
136+
137+
CSRF_TRUSTED_ORIGINS = [
138+
'https://python-speedtest.azurewebsites.net'
139+
]
140+
141+
CSRF_COOKIE_SECURE = True
142+
SESSION_COOKIE_SECURE = True
143+
SECURE_SSL_REDIRECT = True

0 commit comments

Comments
 (0)