在GitHub上分享我的Google Maps API密钥是否安全?

Mat*_*cki 2 google-maps

我正在谈论的关键是

<script src="https://maps.googleapis.com/maps/api/js?key=PUT_YOUR_API_KEY_HERE"></script>
Run Code Online (Sandbox Code Playgroud)

我想用密钥提交我的文件,以便用户可以立即使用我的Google地图.

geo*_*zip 9

如果您为Google Maps Javascript API v3密钥配置引荐来使其仅适用于您拥有的网站,那么将其公开提供就没有任何安全问题.当您将其放入公共网站时,您必须这样做.