我最近开始收到以下控制台错误,但没有进行任何代码更改。
我最近没有安装任何扩展。
Failed to load resource: net::ERR_FAILED chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js
Failed to load resource: net::ERR_FAILED
我的页面上有多个嵌入的 YouTube 播放器会触发此错误,但它们很简单:
<iframe width="100%" height="100%" src="http://www.youtube.com/embed/OUR_YOUTUBE_ID?showinfo=0&wmode=transparent" frameborder="0" allowfullscreen=""></iframe>
其他人也经历过这种情况吗?
最佳答案
显然,即使未安装扩展程序,YouTube 也会不断轮询 Google Cast 脚本。
来自一个commenter :
... it appears that Chrome attempts to get cast_sender.js on pages that have YouTube content. I'm guessing when Chrome sees media that it can stream it attempts to access the Chromecast extension. When the extension isn't present, the error is thrown.
我遇到的唯一解决方案是安装 Google Cast扩展,无论您是否需要。然后您可以隐藏工具栏按钮。
有关更多信息和更新,请参阅 this SO question 。这是official issue .
关于javascript - cast_sender.js 错误:无法在 Chrome 中加载资源:net::ERR_FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25833940/