Fork me on GitHub
#reitit
<
2023-05-01
>
Chris G16:05:04

hello 👋

Chris G16:05:28

does anybody know if there's a built-in func for reitit interceptors that redirects all http requests to https?

lispyclouds16:05:48

would we need an interceptor for this? have the server listen to port 80 and respond with a 301 on the / route to port 443?

lispyclouds16:05:01

interceptors would be better to work on the request after its received, http -> s redirection should happen much before i think. i'd even do it on the reverse proxy that lands requests on the app server.

pppaul17:05:06

if you are using nginx or something else, that would be where you do the connection upgrade or redirect

👆 2