Redirect to https in Node.js
amasad (2285)

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
nithilan4 (231)

@MrEconomical

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

lmao