evothings / ecraft2learn

eCraft2learn repository
0 stars 0 forks source link

Problem mixing HTTPS and insecure websockets #3

Open ToonTalk opened 6 years ago

ToonTalk commented 6 years ago

If I run my Snap4Arduino code on an HTTPS page I get this error from Chrome:

mqttws.js:1046 Mixed Content: The page at 'https://snap.berkeley.edu/snapsource/snap.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://raspberrypi.local:1884/mqtt'. This request has been blocked; this endpoint must be available over WSS.

gokr commented 6 years ago

Yeah, the fix is to get proper certs on the raspi and use wss instead of plain ws.

Regards, Göran

Den 28 okt 2017 17:31 skrev "Ken Kahn" notifications@github.com:

If I run my Snap4Arduino code on an HTTPS page I get this error from Chrome:

mqttws.js:1046 Mixed Content: The page at 'https://snap.berkeley.edu/ snapsource/snap.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://raspberrypi.local:1884/mqtt'. This request has been blocked; this endpoint must be available over WSS.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evothings/ecraft2learn/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFaHts2nx0kZZ_R8BjaJBcEgjXeYw9wks5sw0jNgaJpZM4QJ-35 .