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

Chromium Works But Doesn't #24

Open
bitnom opened this issue Aug 27, 2016 · 1 comment
Open

Chromium Works But Doesn't #24

bitnom opened this issue Aug 27, 2016 · 1 comment

Comments

@bitnom
Copy link

bitnom commented Aug 27, 2016

If I open up the hosted demo it works just fine in Chromium. If I clone the git repo and open it locally, it doesn't work in Chromium but does work in Chrome. What's going on? I want to use this script in Electron.js. Why would it work locally in Chrome but not Chromium? I haven't tried it in Electron yet but I'm hoping it will work. I don't want to run a python script.

Is there some difference between the hosted demo and what's in the git repo?

@cjb
Copy link
Owner

cjb commented Aug 28, 2016

It's a policy setting inside Chrome that blocks network connections from file:/// URLs. The Python script runs a local webserver so that you aren't using file:///.

Firefox (and apparently Chromium!) don't have this restriction.

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

2 participants