I know that you can write some JavaScript and simply “redirect” to the https
version of the site, but there’re a few limitations, e.g. if you disable JavaScript or simply send a request, the default is http
, so it’d be nice if Glitch automatically forces https from the server as Replit does.
I am always leery of the word “force” but otherwise having an option to redirect per app would probably be nice. This could also be a good place to discuss the options currently available.
I don’t think there are a lot of options. Also, it shouldn’t be too hard. Glitch already provides https, so it seems sort of a waste not to force it.
I’m not pretending that I know but I assume there are some options, you mentioned one of them using JS.
It could as far as I’m concerned default to HTTPS but I don’t know enough to know that every app in every scenario would work. I don’t see how a check-box to turn a feature off would hurt. In any case the decision isn’t up to me
There could an option to force a 301 redirect similar to this nginx rule:
server {
listen 80;
server_name myproject.glitch.com
return 301 https://myproject.glitch.com$request_uri;
}
That seems pretty nice (and easy). I didn’t know Glitch used Nginx.
This doesn’t say it’s uses Nginx. The message just say that there might be something similar to an Nginx rule.