chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
322 stars 101 forks source link

change JavaScript URLs to https to prevent HTTPS mixed-content errors #18

Open steffenvoigt opened 7 years ago

steffenvoigt commented 7 years ago

I changed the URLs for the jquery scripts to a https URL. This prevents mixed-content errors in an https-only environment.

DanielJoyce commented 7 years ago

You can use protocol relative urls.

DanielJoyce commented 7 years ago

https://www.paulirish.com/2010/the-protocol-relative-url/

DanielJoyce commented 7 years ago

Hmm, since websockets are just 'upgraded' http/https ports, this might work for ws(s) urls as well.

Wll need to test and get in a PR.