Skip to content

Commit a776754

Browse files
committed
Fix CSRF issue
1 parent 3293cc9 commit a776754

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_app/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@
160160
STATIC_ROOT = os.path.join(BASE_DIR, 'test_app', 'static')
161161
STATIC_URL = '/static/'
162162

163+
CSRF_TRUSTED_ORIGINS = ['http://localhost', 'https://localhost']
164+
163165
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
164166

165167
SECRET_KEY = "asdf1234"

0 commit comments

Comments
 (0)