Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I getting this error chrome-extension://invalid

I am facing a wierd problem accessing the Chromecast extension in Chrome.

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://invalid Failed to load resource: net::ERR_FAILED

The error just occurs in Windows in non administrator accounts.

I thought it was the proxy, or the company network firewall, but it wasn't we tested without the proxy and the error occurs.

If the account is a Windows Administrator it works!

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).

My website has https. I set in Internet Options as a trusted site. In old Chromes the error is different:

GET chrome-extension://pkedcjkdefgpdelpbcmbmeomcjbeemfm/cast_sender.js net::ERR_FAILED

Does anyone know how to fix it(chrome-extension://invalid)?

enter image description here

like image 839
Guilherme Simão Couto Avatar asked Jan 26 '23 12:01

Guilherme Simão Couto


1 Answers

In my case when I played audio sound/beep.ogg, it worked but console contained same error. I solved it by adding it to web_accessible_resources in manifest.json:

"web_accessible_resources": [
  "tileset/*.json", "layer/*.json", "sound/*.ogg"
],
like image 63
asdjfiasd Avatar answered Jan 29 '23 13:01

asdjfiasd