From c4f807d38f3b322eb1a0324a982dc010dceea433 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 27 Mar 2021 22:18:42 +0000 Subject: [PATCH] Add X-Forwarded-For support Signed-off-by: Graham --- archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt b/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt index 87043065..cc38f952 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/web/WebServer.kt @@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper import io.ktor.application.call import io.ktor.application.install import io.ktor.features.ContentNegotiation +import io.ktor.features.XForwardedHeaderSupport import io.ktor.http.ContentType import io.ktor.http.HttpStatusCode import io.ktor.http.content.resources @@ -45,6 +46,7 @@ public class WebServer @Inject constructor( }) } + install(XForwardedHeaderSupport) install(Webjars) routing {