-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Origin checks break count.html in Ten minute tutorial via file:// #75
Comments
As a separate test, I copied So the problem really does appear to be only access via |
Thanks! I don't know how I missed it, going to check/fix this shortly. |
This code should solve your problem, thanks again! |
@asergeyev Thanks very much for doing this. I had a go at building the latest code to test this, and ended up creating #76 instead. |
@asergeyev I've now been able to test the latest - and commit 0d22926 does indeed fix the problem, so think that this can be closed. Thank you! |
Summary
count.html
from Ten minute tutorial via file://, and get the count displayedrejected null origin
in websocketd console.From reading #20 comments and https://github.com/joewalnes/websocketd/blob/master/help.go, I expected the origin check to be disabled by default.
Detail
I'm working through the Ten minute tutorial.
I've created and tested count.py, and am running it via
The test of loading via
http://localhost:8080/
works.However, when I create
count.html
, copied directly from the tutorial, I get a blank page. (JavaScript is not disabled)The console output from websocketd says:
The text was updated successfully, but these errors were encountered: