mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt3)!: add default cookie path to /
(#4019)
This commit is contained in:
parent
6276580aa4
commit
76eedb852e
@ -17,6 +17,7 @@ export interface CookieOptions<T=any> extends _CookieOptions {
|
||||
export interface CookieRef<T> extends Ref<T> {}
|
||||
|
||||
const CookieDefaults: CookieOptions<any> = {
|
||||
path: '/',
|
||||
decode: val => destr(decodeURIComponent(val)),
|
||||
encode: val => encodeURIComponent(typeof val === 'string' ? val : JSON.stringify(val))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user