We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9b4aa5 commit 952d42dCopy full SHA for 952d42d
server/src/main/kotlin/cloud/skadi/gist/plugins/HTTP.kt
@@ -25,7 +25,10 @@ fun Application.configureHTTP() {
25
}
26
27
install(ForwardedHeaderSupport) // WARNING: for security, do not include this if not behind a reverse proxy
28
- install(XForwardedHeaderSupport) // WARNING: for security, do not include this if not behind a reverse proxy
+ install(XForwardedHeaderSupport) {
29
+ this.hostHeaders.clear()
30
+ this.hostHeaders.add(HttpHeaders.XForwardedHost)
31
+ }
32
install(ContentNegotiation) {
33
jackson()
34
0 commit comments