Skip to content

Commit

Permalink
Merge pull request #100 from an920107/frontend-v2
Browse files Browse the repository at this point in the history
feat: add HttpOnly on NEXT_LOCALE set-cookie
  • Loading branch information
an920107 authored Nov 19, 2024
2 parents f001202 + ef3b0b2 commit 56f3632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function middleware(request: NextRequest) {
setCookieHeader = setCookieHeader.map((cookie) => {
const [key, val] = cookie.trim().split("=");
if (key === "SameSite") {
return ` ${key}=strict; Secure`;
return ` ${key}=strict; Secure; HttpOnly`;
}
return cookie;
});
Expand Down

0 comments on commit 56f3632

Please sign in to comment.