Restrict Google Maps API Key
Explore how to protect your Google Maps API key by restricting its usage to your deployed Angular application on Heroku. You'll understand the importance of securing API keys that are exposed in client-side code and learn the process to whitelist your app's URL within the Google Cloud Platform Console. This lesson helps ensure your API key cannot be misused, enhancing the security of your deployed application.
We'll cover the following...
We'll cover the following...
Why restrict the key?
Now that we have a Heroku URL for our application, there’s one last precautionary measure we’ll going to take with our Google Maps API key. Unlike our API’s environment variables, which are private and hidden inside Heroku, our Google Maps API key lives within the environment files of our Angular application. As a ...