tailscale/safeweb
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
..
http_test.go cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
http.go safeweb: add CSRF token helpers and set cookie path to root (#19265) 2026-04-06 12:52:36 -04:00