Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

no cookies (#88)

Myles Scolnick17fe226f21fa
diff --git a/marimo/_server/server.py b/marimo/_server/server.py
index 9327a28ff5..750a07ca77 100644
--- a/marimo/_server/server.py
+++ b/marimo/_server/server.py
@@ -255,7 +255,7 @@ async def start_server(
],
cookie_secret=secrets.token_hex(),
template_path=root,
- xsrf_cookies=True,
+ xsrf_cookies=not development_mode,
debug=development_mode,
# ping the websocket once a second to prevent intermittent
# disconnections