0

Initially, without adding a proxy in the frontend in the package.json, the app works completely fine.

But when I add the proxy,

  "proxy": "http://127.0.0.1:5000",

the app cannot fetch images from the public folder. And show this error all over for all images.
I am using node js for the backend. enter image description here

I have my image here in this directory.
enter image description here
Why is it? Is it anything to do with the image path?

Aman Chaudhary
  • 802
  • 3
  • 10
  • 27
  • Can you show the request's headers, particularly the URL it sends to? – Eldar B. Apr 11 '21 at 07:18
  • @EldarB. I solved it using this answer here. https://stackoverflow.com/questions/45367298/could-not-proxy-request-pusher-auth-from-localhost3000-to-http-localhost500. – Aman Chaudhary Apr 11 '21 at 08:17

0 Answers0