Skip to content

Commit 156bc63

Browse files
committed
cookie option same site is optional
1 parent e8aa0b1 commit 156bc63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cookie.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Cookie implements Cookie.CookieOptions {
3232
public readonly maxAge?: number;
3333
public readonly partitioned: boolean;
3434
public readonly path?: string;
35-
public readonly sameSite: Cookie.SameSite;
35+
public readonly sameSite?: Cookie.SameSite;
3636
public readonly secure: boolean;
3737

3838
/**
@@ -63,7 +63,7 @@ class Cookie implements Cookie.CookieOptions {
6363
this.maxAge = options?.maxAge;
6464
this.partitioned = options?.partitioned ?? false;
6565
this.path = options?.path;
66-
this.sameSite = options?.sameSite ?? Cookie.SameSite.STRICT;
66+
this.sameSite = options?.sameSite;
6767
this.secure = options?.secure ?? false;
6868
}
6969

0 commit comments

Comments
 (0)