Javascript 无法在 chrome google.maps api 中加载资源
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32434686/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Failed to load resource in chrome google.maps api
提问by maria.bonet
I have this error in chrome console:
我在 chrome 控制台中有这个错误:
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
https://maps.google.com/maps-api-v3/api/js/22/2/intl/es_ALL/adsense.js
Anyone knows why I have this problem?
有谁知道为什么我有这个问题?
回答by Sartaj Singh Gill
This type of errors are mostly due to an extension like Ad-block plus. Try disabling it for that website and that should fix that issue. You can also look at this question: I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
这种类型的错误主要是由于像 Ad-block plus 这样的扩展。尝试为该网站禁用它,这应该可以解决该问题。你也可以看看这个问题: I'm getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
回答by achiang
Simply disabling extensions doesn't work; you can verify this by disabling your ad-blocking extension, reloading the page, and still seeing broken behavior.
简单地禁用扩展是行不通的;您可以通过禁用广告拦截扩展程序、重新加载页面并仍然看到损坏的行为来验证这一点。
The problem seems more closely related to cookies. You could delete all cookies from Google, but that is a pretty big hammer, with the downside of having to log back in to various Google properties.
这个问题似乎与 cookie 更密切相关。您可以从 Google 删除所有 cookie,但这是一个非常大的锤子,缺点是必须重新登录各种 Google 属性。
Instead, you can remove the specific cookies that cause the issue:
相反,您可以删除导致问题的特定 cookie:
- Open maps.google.com
- Click on the green "Secure" note to the left of the address bar.
- Under "Cookies" it'll say "xx in use" -- click that text.
- Expand "www.google.com" and "Cookies"
- Remove all gsScrolPos cookies, by selecting one and clicking "Remove" (multi-select using the shift key doesn't seem to work)
- Click reload (F5) -- maps will work.
- 打开 maps.google.com
- 单击地址栏左侧的绿色“安全”注释。
- 在“Cookies”下,它会显示“xx in use”——单击该文本。
- 展开“www.google.com”和“Cookies”
- 删除所有 gsScrolPos cookie,方法是选择一个并单击“删除”(使用 shift 键进行多选似乎不起作用)
- 单击重新加载 (F5) - 地图将起作用。
Original link:
原文链接:
https://productforums.google.com/forum/#!topic/chrome/AVmQTZfwtYw
https://productforums.google.com/forum/#!topic/chrome/AVmQTZfwtYw