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

Getting Blocked loading mixed active content on Firefox when hosting app over HTTPS. #3

Open
FF-AntiK opened this issue Mar 7, 2022 · 6 comments

Comments

@FF-AntiK
Copy link

FF-AntiK commented Mar 7, 2022

I'm getting the Blocked loading mixed active content error when my WASM-Client tries to connect to the server.
Is there a way to use SSL in the server implementation?
If not, is there a way to trick Firefox into establishing the WebRTC connection anyways?

@billyb2
Copy link
Owner

billyb2 commented Mar 7, 2022

You're serving the WASM files over HTTPS too?

@FF-AntiK
Copy link
Author

FF-AntiK commented Mar 8, 2022

Yes, if I won't, Firefox would complain about gamepad support, which only works on secure connections.

@billyb2
Copy link
Owner

billyb2 commented Mar 14, 2022

Honestly, I'm not too sure as to what to do. I'm not very knowledgable of browser networking, though it definetly sounds like an issue with the naia part of the codebase. Have you seen any similar issues there?

@FF-AntiK
Copy link
Author

No Problem. I'll play with naia directly and report any findings here.

@FF-AntiK
Copy link
Author

Hey, so I managed to setup a proxy to route secure traffic to the unsecured WebRTC server.
But that was only one part of the problem.
To make it work the naia-client needs to know the public WebRTC URL.
This is only possible in the latest naia release which uses naia-socket 0.8.0!

@billyb2
Copy link
Owner

billyb2 commented Mar 28, 2022

I've been pretty busy with university lately, but I'd absolutely love to upgrade to the latest naia version! If someone would want to work on a PR for the upgrade, I'd be very happy to review and merge it. If not, I'll probably work on one at the end of my semester.

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