react-weather
react-weather copied to clipboard
Store the API key in backend
You have used stored the API key in environment file so it prevents anyone from seeing the API key. But when someone uses this application and inspect in the Network tab in the browser then they can easily see the API key. You need to store the API key in the backend which will act as a proxy server and instead of sending the request to weather API from frontend directly you should send the API call from the backend that way the API key wont be exposed in the browser.