This message was deleted.
# general
m
This message was deleted.
h
Hey Toni, we didn’t see that anyone was using
X-Session-Cookie
.
X-Session-Cookie
was problematic because it did not contain the cookie name, only the cookie value. That posed a security risk. It was not documented anywhere we could find (maybe we missed something?). We therefore removed it because it was an obscure header that was also a security problem. I’m sorry that we missed your use case.
To fix it, do the following. Instead of extracting the cookie value, just forward the cookie header. In NodeJS for example:
Copy code
res.header.set("Cookie", )
ups, enter too quickly
here are the official ways for different sdks that are supported for fetching whoami
b
So now I should send the token as Bearer instead ?
I am using a simple axios request for session
h
no
the node example contains both: token and cookie
ok if you are using axios in nodejs, then it’s:
Copy code
axios.get('/sessions/whoami', {
    headers: {
      Cookie: req.cookies.join(';')
    }
  })
b
Okay, yes, it works.
Unfortunately this costs us 2 days off
h
😞 I’m really sorry about that, we should have done better and announced the removal of the field. We did do a thorough code search in all the docs and examples and could not find any usage of it, and thus thought that noone will also use it (since it’s undocumented). But we were wrong - will add this example to our knowledge base to improve the process here. Sorry about the trouble 😞
🙌 2
@fast-lunch-54279 @famous-art-85498 please ack
👍 1
b
Im ur pain in the ass guys, what can I do ?! hahahhaa
❤️ 1
h
Noo, it’s all love ❤️