Detect HTTP or HTTPS then force HTTPS in JavaScript September 25, 2022 by Tarik Detect HTTP or HTTPS then force HTTPS in JavaScript