Skip to content

Commit

Permalink
change cookies to same site none
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed May 14, 2024
1 parent 6da4962 commit b081d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ const matcherBlock: Block<
name: cookieName,
value: cookieValue.build(uniqueId, result),
path: "/",
sameSite: "Strict",
secure: true,
sameSite: "None",
});
respHeaders.append("vary", "cookie");
}
Expand Down
2 changes: 2 additions & 0 deletions runtime/fresh/middlewares/3_main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ export const handler = [
name: DECO_SEGMENT,
value,
path: "/",
secure: true,
sameSite: "None",
}, { encode: true });
}
}
Expand Down

0 comments on commit b081d76

Please sign in to comment.