Skip to content

Commit 792219c

Browse files
committed
CSRF_TRUSTED_ORIGINS 추가
1 parent 42083e8 commit 792219c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyconkr/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@
245245
)
246246
CORS_ALLOW_CREDENTIALS = True
247247

248+
# CSRF WHITE LIST
249+
CSRF_TRUSTED_ORIGINS = tuple(CORS_ORIGIN_WHITELIST)
250+
251+
# OAUTH
248252
OAUTH_GITHUB_CALLBACK_URL = "http://localhost:8000/accounts/github/login/callback/"
249253
OAUTH_GOOGLE_CALLBACK_URL = "http://localhost:8000/accounts/google/login/callback/"
250254

0 commit comments

Comments
 (0)