Get help from the marimo community

Updated 4 months ago

Accessing session cookies from marimo

At a glance

The community member is asking if there is a way to access session cookies in Marimo. The first comment suggests using a third-party tool called AnyWidget, but the community member notes that the cookies they are interested in are not the ones set on the client, but rather the ones sent by the proxy that their Marimo deployment is behind, which contains a username they would like to fetch in Marimo for access control purposes. Another community member suggests looking into the Marimo documentation on deploying programmatically to potentially address this issue, but there is no explicitly marked answer.

Useful resources
Hi. Is there a way to access the session cookies in marimo?
M
j
3 comments
Not with marimo direclty, but maybe using https://anywidget.dev/
thanks for the suggestion. I made this work, but then I realized that the cookies I was aiming for was not the ones set on the client, but rather the ones sent by on the instantiation request. This is because my marimo deployment is behind a proxy which appends a cookie to the request, which contains a username that I would like to fetch in marimo to build in some kind access control
Add a reply
Sign up and join the conversation on Discord