Skip to content

Commit 633b867

Browse files
save file
1 parent edc4109 commit 633b867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/25-07-24/http-server/ex/login-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
}
111111

112112
var cookie = user.cookie;
113-
res.setHeader('set-cookie',`session=${cookie}; HttpOnly; Secure; SameSite=Strict; Max-Age=0`);
113+
res.setHeader('set-cookie',`session=${cookie}; HttpOnly; Secure; SameSite=Strict; Max-Age=0;`);
114114
//res.setHeader('set-cookie',`name=john;HttpOnly;Secure;SameSite=Strict;Max-Age=0`);
115115
res.setHeader('Location','/login.html');
116116
res.statusCode = 303;

0 commit comments

Comments
 (0)