3

I'm using React CRA-typescript template and want to configure proxy manually using http-proxy-middleware

This is my setupProxy.js

This is my setupProxy.js

And this is my fetch request enter image description here

But proxy is not redirecting to correct url and still using localhost. This how request send in browser

enter image description here

Anyone know why this is happening or am I doing it wrong here?

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
Ramy
  • 43
  • 1
  • 3

0 Answers0