standalone: send sameSite:lax by default
This commit is contained in:
+4
-1
@@ -94,4 +94,7 @@ node_modules
|
||||
debug/
|
||||
target/
|
||||
**/*.rs.bk
|
||||
*.pdb
|
||||
*.pdb
|
||||
|
||||
|
||||
standalone-v2-beta/**
|
||||
|
||||
@@ -169,6 +169,7 @@ const auth = new Elysia({
|
||||
value: await Bun.password.hash(body.password),
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
maxAge: 86400 * 7,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user