We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7e9d3 commit 4079257Copy full SHA for 4079257
backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/api/proxy/KeycloakProxyController.kt
@@ -37,6 +37,14 @@ class KeycloakProxyController (
37
}.let { targetUri.append(it) }
38
}
39
40
+ // Extract cookies from the request
41
+ val cookies = request.cookies
42
+ if (cookies != null) {
43
+ val cookieHeader = cookies.joinToString("; ") { "${it.name}=${it.value}" }
44
+ // Set the cookies in the proxy request headers
45
+ proxy.header("Cookie", cookieHeader)
46
+ }
47
+
48
return proxy.uri(targetUri.toString()).get()
49
50
0 commit comments