mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +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",
|
name: process.env.NODE_ENV === "production" ? "__Secure-next-auth.session-token" : "next-auth.session-token",
|
||||||
options: {
|
options: {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: "none",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
secure: true,
|
secure: process.env.NODE_ENV === "production",
|
||||||
domain: process.env.NODE_ENV === "production" ? ".tomodachishare.com" : "localhost",
|
domain: process.env.NODE_ENV === "production" ? ".tomodachishare.com" : undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue