X-Forwarded-Proto
This commit is contained in:
@@ -148,6 +148,10 @@ func (s *Server) Pre(foo http.HandlerFunc) http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
if r.URL.Scheme == "https" {
|
||||
w.Header().Set("X-Forwarded-Proto", "https")
|
||||
}
|
||||
|
||||
w, did := doCORS(w, r)
|
||||
if did {
|
||||
pushMeta(r, "explain", "did cors")
|
||||
|
||||
Reference in New Issue
Block a user