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
