bootleg_networking icon indicating copy to clipboard operation
bootleg_networking copied to clipboard

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

Open FF-AntiK opened this issue 3 years ago • 6 comments

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?

FF-AntiK avatar Mar 07 '22 17:03 FF-AntiK

You're serving the WASM files over HTTPS too?

billyb2 avatar Mar 07 '22 23:03 billyb2

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

FF-AntiK avatar Mar 08 '22 07:03 FF-AntiK

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?

billyb2 avatar Mar 14 '22 21:03 billyb2

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

FF-AntiK avatar Mar 14 '22 21:03 FF-AntiK

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!

FF-AntiK avatar Mar 20 '22 16:03 FF-AntiK

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.

billyb2 avatar Mar 28 '22 21:03 billyb2