From bdc320de65af4599957e4120f8740b3526696caf Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 26 May 2024 09:37:41 +0800 Subject: [PATCH] . --- routes/api/token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/token.ts b/routes/api/token.ts index 78874dd..e35143e 100644 --- a/routes/api/token.ts +++ b/routes/api/token.ts @@ -151,7 +151,7 @@ export const handler: Handlers = { headers["Set-Cookie"] = `token=${token.token}; Expires=${token.expired.toUTCString()}${ http_only ? "; HttpOnly" : "" - }${secure ? "; Secure" : ""}; Path=/api`; + }${secure ? "; SameSite=None; Secure" : ""}; Path=/api`; } return return_data(token, 201, headers); },