0

error log

This error has been showing in my console from chrome. Also note that i am using axios to fetch data from backend

.

I used "proxy": "http://localhost:8800/api" in my package.json in reactJS project and also tried to add cors in the NodeJS

But it really didn't changed the access link!

  • You have to setup a local server to use your app. Opening file with a browser is not an option – Konrad Dec 19 '22 at 19:31
  • Including a direct link in the axios.get("http://localhost:8800/api/____") might solve the issue. though this shouldn't be the answer I assume! – Shadman Wadith Dec 19 '22 at 19:52
  • The error message is pretty clear: `fetch` disallows requests to URLs whose scheme is `file`. What are you actually trying to do? Surely, you want to send a request to some `https` (or perhaps `http`) URL. – jub0bs Dec 19 '22 at 20:02

0 Answers0