Skip to content
Snippets Groups Projects
Commit 60887804 authored by PJ Eby's avatar PJ Eby Committed by Rohith Jayawardene
Browse files

Don't infinite-redirect when https is proxied (#337)

parent 7e5633a3
Branches
No related tags found
No related merge requests found
......@@ -361,6 +361,7 @@ func (r *oauthProxy) securityMiddleware(next http.Handler) http.Handler {
ContentTypeNosniff: r.config.EnableContentNoSniff,
FrameDeny: r.config.EnableFrameDeny,
SSLRedirect: r.config.EnableHTTPSRedirect,
SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
})
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment