Klara Erlebachova
09/23/2025, 6:48 AMcredentials: include
(https://github.com/ktorio/ktor/pull/4793) for all requests? It would be great to have more real world example for Js, including setting auth headers etc. Current example is pretty minimal.Klara Erlebachova
09/23/2025, 8:13 AMval jsHttpClient = HttpClient(Js) {
engine {
configureRequest {
credentials = "include"
}
}
defaultRequest {
headers {
customHttpHeaders.forEach { (key, value) ->
append(key, value)
}
}
}
}
Aleksei Tirman [JB]
09/30/2025, 11:55 AMfetchOptions
method for the per-request configuration. I've included an example here.