react-weather icon indicating copy to clipboard operation
react-weather copied to clipboard

Store the API key in backend

Open mrinmay7875 opened this issue 4 years ago • 0 comments

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.

mrinmay7875 avatar Mar 10 '21 11:03 mrinmay7875