Hmmm I'm realising I did this as a byproduct of something I set up recently, which is an email webclient behind basic auth on my own server.