mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
fix: cors attack issue? (#58)
This commit is contained in:
parent
9f6569f439
commit
d5c619567a
1 changed files with 3 additions and 3 deletions
|
|
@ -15,10 +15,10 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
|
|||
name: process.env.NODE_ENV === "production" ? "__Secure-next-auth.session-token" : "next-auth.session-token",
|
||||
options: {
|
||||
httpOnly: true,
|
||||
sameSite: "none",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
secure: true,
|
||||
domain: process.env.NODE_ENV === "production" ? ".tomodachishare.com" : "localhost",
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
domain: process.env.NODE_ENV === "production" ? ".tomodachishare.com" : undefined,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue