We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8aa0b1 commit 156bc63Copy full SHA for 156bc63
src/Cookie.ts
@@ -32,7 +32,7 @@ class Cookie implements Cookie.CookieOptions {
32
public readonly maxAge?: number;
33
public readonly partitioned: boolean;
34
public readonly path?: string;
35
- public readonly sameSite: Cookie.SameSite;
+ public readonly sameSite?: Cookie.SameSite;
36
public readonly secure: boolean;
37
38
/**
@@ -63,7 +63,7 @@ class Cookie implements Cookie.CookieOptions {
63
this.maxAge = options?.maxAge;
64
this.partitioned = options?.partitioned ?? false;
65
this.path = options?.path;
66
- this.sameSite = options?.sameSite ?? Cookie.SameSite.STRICT;
+ this.sameSite = options?.sameSite;
67
this.secure = options?.secure ?? false;
68
}
69
0 commit comments