hide key of google maps in web page

2

I'm trying an app and I use the google maps libraries, but when I upload the script to my main website, if I analyze the code, it looks like my key from google maps.

//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key="Mi key oculta"

I would like another text to appear instead of my original key ... since I'm afraid that if I release my app, they'll take the key and damage it.

    
asked by Christian Abata 17.08.2017 в 17:01
source

1 answer

1

Partner, all the security settings of the Google APIs must be done in the Google Developer Console and depending on the API that you use, for example, to protect the use of the "Google Maps Javascript API" you must configure access requests either to accept requests from some IP's or from some domains, once you restrict or filter requests made with your KEY API you should not worry about it being public because if it does not comply with the filter established for the petition will not impact on the quota you have implemented.

Greetings.

    
answered by 27.08.2017 в 04:07