Redirect to https in Node.js
amasad (2281)

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
MrEconomical (2099)

@TaylorLiang yes - I use

<script>window.location.href.match("https")||(window.location.href=window.location.href.replace("http","https"));</script>