Fernando Serboncini 58595a6f0d
safeweb: add CSRF token helpers and set cookie path to root (#19265)
Set csrf.Path("/") so the CSRF cookie is available across all routes,
not just the path where it was set.

Add helpers to expose the gorilla/csrf token for use.

Updates #19264

Signed-off-by: Fernando Serboncini <fserb@tailscale.com>
2026-04-06 12:52:36 -04:00
..