Error: connect ECONNREFUSED

Author: blumonkeyCreated Jun 27, 2015Updated Mar 20, 2024

Hi, I am trying to setup the CORS-Anywhere server and am facing this problem whenever I try to access a URL

//URL: http://localhost:1337/google.com (I use 8080 for tomcat)
Not found because of proxy error: Error: connect ECONNREFUSED

At first I got the Missing headers message, I tried 2 things:

  • Remove the requireHeader option (ie set it to null)
  • Left the recommended requireHeader as-is and added them in the createServer function

Both of them give the same error as shown above. Any help is appreciated. Thanks.