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

Method setCSRFCookie

plugins/csrf/plugin.go:220–248  ·  view source on GitHub ↗

setCSRFCookie sets the CSRF token cookie with hardcoded security settings. Both HttpOnly and Secure are hardcoded to ensure the Double-Submit Cookie pattern works correctly: - HttpOnly=false: Allows JavaScript to read the cookie value - Secure: Set to true only for HTTPS requests (allows development

(reqCtx *models.RequestContext, token string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

MiddlewareMethod · 0.95
generateCSRFTokenHookMethod · 0.95

Calls 2

SetMethod · 0.65
HeaderMethod · 0.45