--- import "@/styles/globals.css"; import { ViewTransitions } from "astro:transitions"; import { getCsrfToken } from "@/middleware/csrf"; interface Props { title: string; } const { title } = Astro.props; const { token, cookie } = getCsrfToken(Astro.request); Astro.response.headers.set("Set-Cookie", cookie); --- {title}