https://kotlinlang.org logo
Title
c

chiroptical

05/03/2023, 6:00 PM
Does anyone have a working example of
Sessions
with
CORS
working? 🧵
https://github.com/chiroptical/shoebill-app-server/blob/main/src/main/kotlin/app/shoebill/backend/plugins/HTTP.kt I modified this to be
allowHeader("SHOEBILL_SESSION")
allowHost("localhost:3000") // my client
// disabled HSTS
Ugh, I should probably push my example so I don't have to explain all the changes. I'll do that later.
It seems like this shouldn't be that hard. I can get the session set in a post request but I can't use that session in subsequent requests. I just keep getting null when fetching the session.
This exhibits the exact same problem, but is a much simpler codebase.
Someone suggested a few other things in my Discord server but no luck. Turns out I forgot
Post
and
Get
in the config 🤦 . However, that doesn't change anything. I still get
Nope
when trying to get the session cookie.
Ignore this thread, I am an absolute derp machine. I was making server - server requests not client - server. 🤦