问题描述
我无法将API密钥限制为Google服务产品的特定域,例如身份工具包或地图。我希望这些API密钥仅在特定端点上起作用,例如https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword
。我已经尝试过使用像https://identitytoolkit.googleapis.com/*
这样的通配符,但是在尝试对其进行测试https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=API_KEY&email=testlang157@gmail.com&password=samplepass&returnSecuretoken=true
之后,仍然无法获得403的响应。
即使在HTTP引荐来源网址中添加了域之后,调用https://maps.googleapis.com/maps/api/geocode/json?latlng=
访问被拒绝时,Map REST API也会发生同样的事情。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)