MCPcopy Create free account
hub / github.com/Authula/authula / validateHeaderProtection

Method validateHeaderProtection

plugins/csrf/plugin.go:116–132  ·  view source on GitHub ↗

validateHeaderProtection validates cross-origin requests using Go 1.25's CrossOriginProtection Returns nil if header validation passes or is disabled, error if validation fails

(r *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

validateCSRFTokenHookMethod · 0.95

Calls 1

DebugMethod · 0.65

Tested by 1