API-Key-Proxy-Server icon indicating copy to clipboard operation
API-Key-Proxy-Server copied to clipboard

404 not found

Open Lornz- opened this issue 6 years ago • 3 comments

Hi there, I tested the proxy server in a local machine with the Open Weather API and my own WEATHER_API_KEY set in .env file but all I got is a 404 code from the server. I try to debug but I have no clue if it comes from the code itself or the http-proxy-middleware. Do you have any idea about what could possibly go wrong?

Lornz- avatar May 04 '20 21:05 Lornz-

Hi, sorry for the late response.

Make sure you are making the request from an allowed domain (can be localhost on another port). If you open the browser and you try to hit your endpoint you'll get a 404 as you are not making the request from an allowed domain.

All requests not made from an allowed domain will return a 404.

MauricioRobayo avatar Jun 19 '20 01:06 MauricioRobayo

Hey @MauricioRobayo ... Any way to allow any and all domains instead of specific ones? Just for local development and tests? For some reason I cannot get any response other than 404 when trying to debug locally, no matter what I try, as opposed to when I push to heroku and use my real domain...

marcosvafilho avatar Oct 13 '20 20:10 marcosvafilho

Hey @MauricioRobayo ... Any way to allow any and all domains instead of specific ones? Just for local development and tests? For some reason I cannot get any response other than 404 when trying to debug locally, no matter what I try, as opposed to when I push to heroku and use my real domain...

Moved here.

MauricioRobayo avatar Oct 14 '20 11:10 MauricioRobayo