react-tutorial icon indicating copy to clipboard operation
react-tutorial copied to clipboard

9. CORS 와 Webpack DevServer Proxy · GitBook

Open utterances-bot opened this issue 3 years ago • 6 comments

9. CORS 와 Webpack DevServer Proxy · GitBook

https://react.vlpt.us/redux-middleware/09-cors-and-proxy.html

utterances-bot avatar Jan 24 '22 04:01 utterances-bot

좋은 정보 감사합니다.

Darcyu83 avatar Jan 24 '22 04:01 Darcyu83

"proxy": "http://localhost:4000" 설정시

  • options.allowedHosts[0] should be a non-empty string. 오류가 나네요 모르겟뜸

josunyjostar avatar Feb 15 '22 09:02 josunyjostar

저도 @josunyjostar님처럼 같은 에러가 나네요

hjplumtree avatar Feb 17 '22 02:02 hjplumtree

@josunyjostar, @hjplumtree 7장 8. json-server 파트 보시면 data.json 파일을 4000포트로 서버에 올리는 과정이 있습니다. 이 과정을 진행하셔야 4000포트 프록시 설정이 먹힐 겁니다.

프록시 = 백엔드서버의 도메인 이라고 생각하시면 이해가 쉬우실 겁니다. ㅎㅎ

CooperKang avatar Apr 20 '22 02:04 CooperKang

외부 API 사용시 우회가 필요할경우 https://cors.sh 와 같은 서비스를 이용하면 된다는점..

softmarshmallow avatar Jan 20 '23 16:01 softmarshmallow

좋은 글 감사합니다

soondaeman avatar May 11 '23 03:05 soondaeman