Skip to content

Commit

Permalink
secure cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromaticPanic committed Jun 6, 2024
1 parent 581fd5c commit f359c72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/root/body/body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ const Body: React.FC<params> = (props) => {
requestUUID(backendUrl, email)
.then((response) => {
props.setUuid(response.uuid);
Cookies.set("user-uuid", response.uuid, { expires: 30 });
Cookies.set("user-uuid", response.uuid, {
expires: 30,
sameSite: "strict",
secure: true,
});
})
.catch((error) => {
console.error(error);
Expand Down

0 comments on commit f359c72

Please sign in to comment.