Skip to content

Commit

Permalink
feat(cookie-options)!: set same site strict by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Mar 20, 2024
1 parent a77d590 commit 8bb24c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ cookieNameCookiesEnabledIds: 'ncc_e',
// Options to pass to nuxt's useCookie
cookieOptions: {
path: '/',
sameSite: 'strict',
}
// Switch to toggle the "accept necessary" button.
Expand Down
1 change: 1 addition & 0 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export const DEFAULTS: Required<ModuleOptions> = {
cookieNameCookiesEnabledIds: 'ncc_e',
cookieOptions: {
path: '/',
sameSite: 'strict',
},
isAcceptNecessaryButtonEnabled: true,
isControlButtonEnabled: true,
Expand Down

0 comments on commit 8bb24c9

Please sign in to comment.