【发布时间】:2017-02-01 02:25:29
【问题描述】:
我有一个 grails 应用程序。当我有行时,在我的 gsp 页面中
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=myKey"></script>
我的密钥暴露了,有没有办法在 gsp 中隐藏它?我可以限制我的生产域,但目前该应用程序正在我的本地机器上进行大量测试,因此必须添加每台 PC 的 ip。我假设应该有一种更智能、更简单的方法来处理这个问题。
【问题讨论】:
标签: javascript google-maps google-maps-api-3 google-places-api