Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect: CORS error on jsonrpc request #155

Open
smcphill opened this issue Mar 2, 2019 · 1 comment
Open

Can't connect: CORS error on jsonrpc request #155

smcphill opened this issue Mar 2, 2019 · 1 comment

Comments

@smcphill
Copy link

smcphill commented Mar 2, 2019

I'm unsure if this is an issue with this extension, or my kodi configuration.

Operating environment

  • Chrome browser: Version 72.0.3626.119 (Official Build) (64-bit)
  • Extension version: 191
  • Kodi version: Kodi (17.6). Platform: Linux ARM (Thumb) 32-bit for Raspberry Pi
  • Additional Kodi plugins: I'm running Chronus for HTTP remote control, which might be of interest

Steps to reproduce:

  • enter kodi HTTP details (url and port; I don't have a username/password)
  • save

Expected

  • extension connects to kodi

Actual

  • extension doesn't connect to kodi. Console log has a CORS error against the request for the jsonrpc resource:
Access to XMLHttpRequest at 'http://[email protected]/jsonrpc' from origin 'chrome-extension://fncjhcjfnnooidlkijollckpakkebden' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@smcphill
Copy link
Author

smcphill commented Mar 2, 2019

this is odd. I just tried loading the extension from source (I want to submit a PR so was getting a local dev environment setup), and I can't reproduce the error with the unpacked version.

Although it looks like v1.9.1 is the head of master... 🤷‍♀️

edit: I get this error sporadically when loading my unpacked changes in dev mode...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant