aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/cors.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-07 22:35:09 +0100
committertv <tv@krebsco.de>2026-11-07 22:35:09 +0100
commit107e15335314f9ccdf57b297de45326f45571888 (patch)
treedae44bcae0b52022ce82996a32d9249779023d83 /src/api/cors.rs
parent6fbcb1d3ad9360d7a05f1dcece383cfb095ba1d4 (diff)
dashboard: subscribed nodes' messages as dots
The page reads a subscribed node's message counts from it too, and draws them as dots on the map, as this node's own. Auth plan M3 (live data from every reachable node).
Diffstat (limited to 'src/api/cors.rs')
-rw-r--r--src/api/cors.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/cors.rs b/src/api/cors.rs
index 313d331..2d5fdc3 100644
--- a/src/api/cors.rs
+++ b/src/api/cors.rs
@@ -1,5 +1,6 @@
//! Pages of other origins reading this node: the dashboards of other members, which a
-//! page subscribes to for their own links (`/admin/dashboard/links/own`), refreshing its
+//! page subscribes to for their own links and traffic (`/admin/dashboard/links/own`,
+//! `/admin/dashboard/traffic/own/events`), refreshing its
//! token on any node (`/auth/refresh`, `/auth/whoami`). Only those endpoints, only for
//! the origins of the dashboards the member list names and those of `--cors-origins`,
//! and without credentials: a page sends its token itself (`Authorization: Bearer`),
@@ -21,6 +22,7 @@ fn open(path: &str) -> bool {
path,
"/admin/dashboard/links/own"
| "/admin/dashboard/links/own/events"
+ | "/admin/dashboard/traffic/own/events"
| "/auth/refresh"
| "/auth/whoami"
)