mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26110 from dhritzkiv/patch-9
[express-session] Add sameSite property to SessionOptions
This commit is contained in:
@@ -11,7 +11,7 @@ app.use(session({
|
||||
secret: 'keyboard cat',
|
||||
name: 'connect.sid',
|
||||
store: new session.MemoryStore(),
|
||||
cookie: { path: '/', httpOnly: true, secure: false },
|
||||
cookie: { path: '/', httpOnly: true, secure: false, sameSite: true },
|
||||
genid: (req: express.Request): string => '',
|
||||
rolling: false,
|
||||
resave: true,
|
||||
|
||||
Vendored
+1
@@ -32,6 +32,7 @@ declare global {
|
||||
httpOnly: boolean;
|
||||
domain?: string;
|
||||
expires: Date | boolean;
|
||||
sameSite?: boolean | string;
|
||||
}
|
||||
|
||||
interface SessionCookie extends SessionCookieData {
|
||||
|
||||
Reference in New Issue
Block a user