How to set cookie in event callback? #4404
Unanswered
EntangledLabs
asked this question in
Q&A
Replies: 1 comment
-
There are two kinds of cookies. In a callback you can only set client-side cookies (via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
How would one set a cookie in an event callback? I understand that app.storage exists but I'm playing around with some cookies directly. I cannot seem to be able to set any cookies without a Response (FastAPI/Starlette), and I cannot send responses without failing to render a page.
Here's minimum code to demonstrate:
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions