OptionalbodyOptionalcookieCookie name carrying the signed token. Defaults to the __Host-csrf prefix,
which requires secure: true, no Domain, and Path=/. Override the name
for HTTP dev environments where the __Host- prefix cannot be honored.
OptionalcookieSet-Cookie attribute overrides. Defaults: SameSite=Strict, Secure,
HttpOnly=false, Path=/.
OptionalerrorError sink invoked on verification failures.
OptionalheaderHeader name read on unsafe requests.
OptionalignoreHTTP methods exempt from token verification.
Secret used to sign the CSRF cookie. Accepts a literal CipherKey or a
callback (useful when the secret rotates with cookieSecret).
OptionalskipPredicate; when truthy the request bypasses verification.
Body field name read on unsafe requests when no header is present.