Functionality to set cookie after connected #4851
evnchn
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 6 replies
-
|
The |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In #4404, we were trying to set cookie after the initial HTTP connection and its window to set the cookie via HTTP Reponse headers has elapsed. Although this cannot be done with NiceGUI natively, there exist 2 workarounds:
ui.run_javaascript()a. Could be doable with a background iframe / background Fetch request, but we can look into that later.
Please upvote if you think this functionality is worth it, and be sure to explain why you are using the cookies instead of
app.storage.user, for example. Thanks!Beta Was this translation helpful? Give feedback.
All reactions