property CsrfFormOptions.headerName

Header that may carry the token instead of a form field, for fetch-based posts and for multipart/form-data bodies this package does not parse. Default 'x-csrf-token'; header reading cannot be disabled — a synchroniser token that cannot be presented is not a security control.

Type

string

Usage

import { type CsrfFormOptions } from "session-plugin/src/index.ts";