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

Added a parameter that allows the upgrade of insecure requests #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nareal
Copy link

@nareal nareal commented May 17, 2023

This avoids the browser block of the websocket served through ws

CSP: upgrade-insecure-requests - HTTP | MDN

This is particularly useful when streaming to the outside world using a service like ngrok (see #8)

This avoids the browser block of the websocket served through ws

[CSP: upgrade-insecure-requests - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/upgrade-insecure-requests)
@eliocamp
Copy link

With this PR, now I cannot see the serve locally, but it does work with ngrok. Is that expected?

Is there any downside to setting the default to TRUE?

@nareal
Copy link
Author

nareal commented May 18, 2023

Yes, that is expected since locally the websocket is served through an insecure connection.

The downside is that it changes the default behaviour of the package.

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

Successfully merging this pull request may close these issues.

2 participants