手动重复QuotaService.RecordEvent时,为什么我的Google地图用量显着增加 [英] Why my Google Maps usage was increased significantly when manually repeat QuotaService.RecordEvent

查看:384
本文介绍了手动重复QuotaService.RecordEvent时,为什么我的Google地图用量显着增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的Google Maps API密钥配置了HTTP引荐来源限制。我在我的网站上使用地图。问题是当我使用Chrome浏览器打开它并使用Chrome DevTool监控网络时,发现了一个有趣的请求


解决方案

我有类似的问题,我重复了配额服务,最后配额不见了,谷歌地图显示灰色背景与Oop!。字。



您是否向Google报告?


I've just configured HTTP referrers restriction for my Google Maps API key. I use map on my website. The problem is when I open it using Chrome and monitor network using Chrome DevTool, I found an interesting request

https://maps.googleapis.com/maps/api/js/QuotaService.RecordEvent?XXXXXXX

Let's say the XXXXXXX was the rest of the URL which you can find it by yourself when did the monitoring like I did. So I just repeat this request and monitor my google map usage in API console and it was increased significantly.

The question is how could we prevent this attack?

解决方案

I have similar issue and I did repeat to quota service, finally quota was gone and google map showed grey background with "Oop!" word.

Do you report this to Google?

这篇关于手动重复QuotaService.RecordEvent时,为什么我的Google地图用量显着增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆