바르고 뜨겁게

React - HTTP API 요청 Network Error (CORS) 본문

자바스크립트/Node Js

React - HTTP API 요청 Network Error (CORS)

RightHot 2019. 12. 1. 23:16

ERROR

Javascript , ReactNative 등 에서 http 요청시 에러

  1. Access to XMLHttpRequest at '[ 요청 주소 ]' from origin '[ 응답 주소 ]' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

  2. Network error

원인 및 해결

https://brunch.co.kr/@adrenalinee31/1

Comments