본문 바로가기
Q&A해결2026년 6월 14일1분 읽기

CORS + 쿠키 인증인데 credentials 요청이 프리플라이트에서 막힙니다

프론트하림
조회 296댓글 4

프론트(app.example.com)에서 API(api.example.com)를 쿠키 인증으로 호출하는데 계속 막힙니다.

Access to fetch ... has been blocked by CORS policy:
The value of the 'Access-Control-Allow-Origin' header in the response
must not be the wildcard '*' when the request's credentials mode is 'include'.

서버에 Access-Control-Allow-Origin: *credentials: true를 같이 줬는데도 안 됩니다. 쿠키도 요청에 안 실리는 것 같고요.

댓글 0

아직 댓글이 없습니다.
Ctrl+Enter로 등록