Kill credentials that are used over plain HTTP. Lots of work
I’m interested in something that would provide benefits but would be easy to implement. We host our api on the same domain as the user facing site, but under /api/ .
How should I configure caddy so that HTTP → HTTPS redirect would work like it does by default, except for /api/ (or any other specific prefixes) that would return HTTP 426 or 403?
Oh, another, related, question. If I use error "error-message" http-status, where does “error-message” end up? I didn’t find it in the error response to the client. How can I customize the error body?