Skip to content

Commit b7b870b

Browse files
authored
Merge pull request #87 from golony6449/feature/golony/ticket
CORS
2 parents f33d8ba + cf74571 commit b7b870b

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)