question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect to Kodi in Chrome Canary

See original GitHub issue

Symptom

In Google Chrome Canary (version 59.0.3059.0, 64-bit, OS X), trying to play a video has no effect; opening the extension pop-up shows the message “Unable to connect to Kodi”.

Cause

Chrome is phasing out support for sending credentials in the URL - viewing the extension’s console messages shows the following warning: [Deprecation] Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked. See https://www.chromestatus.com/feature/5669008342777856 for more details. I know that this extension isn’t directly doing this, but it seems that you’re getting caught up in the change anyway. This results in all your calls to ajaxPost being blocked with an origin error: download

Workaround

I’ve found a workaround for a specific case - if the user isn’t using authentication, getCredentials() currently returns [“anonymous”,“”]. Changing this to return [null,null] allows the request to be sent and the extension to function as normal.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
predakangacommented, Apr 20, 2017

Nope, Google has actually changed their mind on this, thankfully!

As described in https://bugs.chromium.org/p/chromium/issues/detail?id=707761#c31, they’re allowing credentials to be used in XHR going forward - the changes have already landed in Chrome Canary.

That issue isn’t closed yet so I suppose they could change their mind again, but unless that happens we should be able to consider this issue fixed 😃

0reactions
cffmcommented, Apr 21, 2017

Running Canary 60.0.3076.0 built 4/20 and it works! Awesome fix that I guess required zero work 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kodi unable to connect 100% work - YouTube
Kodi addons not workAdd builds to kodiKodi proplemKodi not workBest kodi addonsKodi translateKodi buildKodi⛔If it didn't work try to stop ...
Read more >
Kodi Unable to Connect? Here are 5 Solutions To Fix the Error
Open Kodi 'Settings' · Open 'File Manager' from the System Page · Click on the respective repository and select 'Edit source' · Click...
Read more >
Kodi Unable to Connect? How to Fix this Error in 2022 (3 ...
1. Check Internet Connection ... The first method for solving this problem is to check your device's internet connection. Whether you are using...
Read more >
Kodi on Chromecast with Google TV stops working - Reddit
I've been experiencing the same intermittent issue, and I just cleared the cache, and it worked for me as well. My Kodi settings...
Read more >
How to Watch Movies on Kodi in 6 Easy Steps - Surfshark
I'm here to walk you through the step-by-step guide on how to start watching movies on Kodi. And why it's also essential to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found