readCsrfToken
此内容尚不支持你的语言。
readCsrfToken(
request,options?):string|null
Defined in: src/http/middleware/Csrf.ts:109
Read the CSRF token an SSR handler should template into its form/meta — the forwarded request header first (present from the very first GET), then the cookie.
Parameters
Section titled “Parameters”request
Section titled “request”options?
Section titled “options?”cookieName?
Section titled “cookieName?”string
headerName?
Section titled “headerName?”string
Returns
Section titled “Returns”string | null
