Skip to content

Commit

Permalink
Merge pull request #54 from rtCamp/fix/change-domain-c-for-storage-ac…
Browse files Browse the repository at this point in the history
…cess-api

Add a dot do make the domain consistent between request and response
  • Loading branch information
gagan0123 authored Feb 22, 2024
2 parents 80ed0b6 + f01b1c7 commit a3fdf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demos/storage-access-api/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ router.post( '/set-personalization', ( req, res ) => {
}

res.cookie('theme', theme, {
domain: res.locals.domainC,
domain: `.${res.locals.domainC}`,
maxAge: 30 * 24 * 60 * 60 * 1000, // 30 days
httpOnly: true,
sameSite: "none",
Expand Down

0 comments on commit a3fdf19

Please sign in to comment.