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); },