From 1458ea92a41788a0f33e86e621817613f46055eb Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:09 +0100 Subject: dashboard: own links over the API, and CORS GET /admin/dashboard/links/own and its event stream: a node's own links, as LINKS_REPLY carried them, for other members' dashboards with a token. CORS for the members' dashboard origins and --cors-origins, without credentials. Auth plan M3. --- src/state/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state') diff --git a/src/state/mod.rs b/src/state/mod.rs index 223c0c9..272855f 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -149,6 +149,8 @@ pub(crate) struct AppState { pub(crate) node_key: Option>, pub(crate) token_lifetime: Duration, pub(crate) session_lifetime: Duration, + /// Origins whose pages may call this node's open endpoints (`api::cors`). + pub(crate) cors_origins: Arc>, /// This node's own files, and how much it read and wrote them. pub(crate) files: Arc, /// This node's document on disk (`--document-file`), if configured. -- cgit v1.3.1