Redirect to https in Node.js
h
amasad (2726)

If you want to make sure your replit site only serves https you can use this middleware.

You are viewing a single comment. View All
slip1244 (253)

@MrEconomical

if (window.location.protocol == "http:") 
window.location.protocol = "https:";

lmao