{{tag>[CORS SOP error]}} ====== CORS error ====== 브라우저가 자신의 오리진과 다른 오리진의 API 서버와 직접 통신할때 발생(SOP 위반) == firefox == > Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ''URL''. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200. == chrome == > localhost/:1 Access to XMLHttpRequest at ' ''URL'' ' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.