Closed silvermanseoul closed 2 years ago
Cross-site 쿠키 허용하려고 axios 글로벌 설정을 withCredentials = true로 바꿨어. (Django는 #155 에서 CORS_ALLOW_CREDENTIALS = True로 설정했었어.)
withCredentials = true
CORS_ALLOW_CREDENTIALS = True
그런데 카카오 API 호출할 땐 예외적으로 false로 했어. true면 preflight 요청에 대한 응답 헤더가 Access-Control-Allow-Origin: *라서 CORS 정책 위반이야.
false
true
Access-Control-Allow-Origin: *
Cross-site 쿠키 허용하려고 axios 글로벌 설정을
withCredentials = true
로 바꿨어. (Django는 #155 에서CORS_ALLOW_CREDENTIALS = True
로 설정했었어.)그런데 카카오 API 호출할 땐 예외적으로
false
로 했어.true
면 preflight 요청에 대한 응답 헤더가Access-Control-Allow-Origin: *
라서 CORS 정책 위반이야.