Skip to content

Commit

Permalink
chore: update docs for sameSite option
Browse files Browse the repository at this point in the history
  • Loading branch information
camelmasa committed Aug 21, 2022
1 parent da9c954 commit 7372ab6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/components/framework/cookie.md
Expand Up @@ -16,7 +16,7 @@ let cookie = new Cookie('__session', {
path: '/',
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'strict',
sameSite: 'Strict',
maxAge: 60 * 60 * 24 * 30,
});
cookie.parse(request.headers.get('cookie'));
Expand Down
2 changes: 1 addition & 1 deletion docs/components/framework/cookiesessionstorage.md
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
path: '/',
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'strict',
sameSite: 'Strict',
maxAge: 60 * 60 * 24 * 30,
}),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/components/framework/filesessionstorage.md
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
path: '/',
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'strict',
sameSite: 'Strict',
maxAge: 60 * 60 * 24 * 30,
}),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/components/framework/memorysessionstorage.md
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
path: '/',
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'strict',
sameSite: 'Strict',
maxAge: 60 * 60 * 24 * 30,
}),
});
Expand Down
2 changes: 1 addition & 1 deletion docs/framework/hydrogen-config.md
Expand Up @@ -170,7 +170,7 @@ export default defineConfig({
/* Whether to secure the cookie so that the browser only sends the cookie over HTTPS. */
secure: process.env.NODE_ENV === 'production',
/* Declares that the cookie should be restricted to a first-party or same-site context. */
sameSite: 'strict',
sameSite: 'Strict',
/* The number of seconds until the cookie expires. */
maxAge: 60 * 60 * 24 * 30,
}),
Expand Down

0 comments on commit 7372ab6

Please sign in to comment.