为什么我收到此错误chrome-extension:// invalid [英] Why am I getting this error chrome-extension://invalid
问题描述
我在访问Chrome中的Chromecast扩展程序时遇到了一个奇怪的问题。
I am facing a wierd problem accessing the Chromecast extension in Chrome.
我制作了一个网页,当用户按下连接时,调用Cast Api并打开对话框以连接到Chromecast。
I made a web page and when the user press connect it call the Cast Api and open the dialog to connect to a Chromecast.
在某些电脑中,它不起作用,出现的错误是:
In some pcs it doesn't work the error that appears is:
chrome-extension://无效加载资源失败:net :: ERR_FAILED
chrome-extension://invalid Failed to load resource: net::ERR_FAILED
只是错误
我以为它是代理服务器或公司网络防火墙,但是我们没有代理服务器才进行测试,并且发生错误
I thought it was the proxy, or the company network firewall, but it wasn't we tested without the proxy and the error occurs.
如果该帐户是Windows管理员,则可以使用!
If the account is a Windows Administrator it works!
我的猜测是Chrome或Windows可以
My guess is that the Chrome or Windows is blocking the access to the extension because is a javascript calling the cast.js and the cast.js calls extension (Maybe CORS).
我的网站有https,因此阻止了对该扩展程序的访问,因为是一个JavaScript调用了cast.js,而cast.js则调用了扩展程序。我在 Internet选项中设置为受信任的站点。
在旧版Chrome中,错误有所不同:
My website has https. I set in Internet Options as a trusted site. In old Chromes the error is different:
获取chrome-extension://pkedcjkdefgpdelpbcmbmeomcjbeemfm/cast_sender.js
net :: ERR_FAILED
GET chrome-extension://pkedcjkdefgpdelpbcmbmeomcjbeemfm/cast_sender.js net::ERR_FAILED
有人知道如何修复它(chrome-extension:// invalid)吗?
Does anyone know how to fix it(chrome-extension://invalid)?
推荐答案
我发现了发生了什么。
公司网络受其代理保护。
I discovered what happened. The corporate network is protected by their proxy.
我们监视了呼叫,发现:
强制转换库试图将强制转换扩展名称为 pkedcjkdefgpdelpbcmbmeomcjbeemfm。
We monitored the calls and discovered that: The cast lib tries to call the cast extension "pkedcjkdefgpdelpbcmbmeomcjbeemfm", which is not installed at %appdata% folder.
Chrome尝试从以下网址下载该文件:gvt1.com,并且网络阻止了该域。与网络管理员联系后,我们发布了该域,该域就可以正常工作。
The Chrome tries to download it at: gvt1.com and the network blocked this domain. After talking to the network administrator, we released the domain and it worked.
这篇关于为什么我收到此错误chrome-extension:// invalid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!