Skip to content

Commit cf74571

Browse files
committed
티켓-결제 관련 모듈 수정
1 parent 070d955 commit cf74571

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pyconkr/settings.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,20 @@
228228
"SWAGGER_UI_DIST": "//unpkg.com/[email protected]",
229229
}
230230

231-
CORS_ALLOW_ALL_ORIGINS = True
231+
# CORS_ALLOW_ALL_ORIGINS = True
232+
CORS_ORIGIN_WHITELIST = (
233+
"https://2023.pycon.kr",
234+
"https://pycon-dev2023.pycon.kr",
235+
"https://pycon-prod2023.pycon.kr",
236+
"https://127.0.0.1:3000",
237+
"https://localhost:3000",
238+
"http://2023.pycon.kr",
239+
"http://pycon-dev2023.pycon.kr",
240+
"http://pycon-prod2023.pycon.kr",
241+
"http://127.0.0.1:3000",
242+
"http://localhost:3000",
243+
)
244+
CORS_ALLOW_CREDENTIALS = True
232245

233246
OAUTH_GITHUB_CALLBACK_URL = "http://localhost:8000/accounts/github/login/callback/"
234247
OAUTH_GOOGLE_CALLBACK_URL = "http://localhost:8000/accounts/google/login/callback/"

0 commit comments

Comments
 (0)