// index.tsimport { Hono } from 'hono';import { getCookie, setCookie} from 'hono/cookie';import CryptoJS from 'crypto-js';const app = new Hono();app.get('/csrf', (c) => { setCookie(c, 'X-CSRF-Token', 'abc'); const testget = getCookie(c, 'X-CSRF-Token'); console.log('test get: ', testget); const allCookies = getCookie(c); console.log('allCookies : ', allCookies); return c.text(csrfToken);});export default app;
test get: undefinedallCookies : {}[wrangler:inf] GET /csrf 200 OK (8ms)