MCPcopy Index your code
hub / github.com/labstack/echo / validateCSRFToken

Function validateCSRFToken

middleware/csrf.go:254–256  ·  view source on GitHub ↗
(token, clientToken string)

Source from the content-addressed store, hash-verified

252}
253
254func validateCSRFToken(token, clientToken string) bool {
255 return subtle.ConstantTimeCompare([]byte(token), []byte(clientToken)) == 1
256}
257
258var safeMethods = []string{http.MethodGet, http.MethodHead, http.MethodOptions, http.MethodTrace}
259

Callers 1

ToMiddlewareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…