728x90
에러 내용
Access to XMLHttpRequest at 'https://api.app.com/scm/v1/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
해결
백엔드에서 설정을 안함
withCredentials 을 프론트에서 설정할 경우, 백에서도 추가설정이 필요함
'6. Error' 카테고리의 다른 글
[ Active Reports JS ] React내에서 렌더링 안되는 404 에러 (0) | 2024.09.02 |
---|---|
[eslint] is defined but never used (0) | 2024.06.13 |
[Next] window is not defined (0) | 2024.03.19 |
[Error] Next14 Styled-Component 에러 (0) | 2024.03.07 |
[Error] Next14 - invariant expected app router to be mounted, The above error occurred in the <HotReload> component (0) | 2024.03.07 |