Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 0406b97

Browse files
committed
[FIX] Chrome, Brave, and IE iframe login failure due to cookies restriction
1 parent 2fa9cda commit 0406b97

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

client/src/components/Login/index.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,18 @@ export default function Login(props) {
3838
})
3939
.then((response) => response.json())
4040
.then((data) => {
41-
Cookies.set("rc_token", data.data.rc_token);
42-
Cookies.set("rc_uid", data.data.rc_uid);
43-
Cookies.set("rc4git_token", data.data.rc4git_token);
41+
Cookies.set("rc_token", data.data.rc_token, {
42+
sameSite: "None",
43+
secure: true,
44+
});
45+
Cookies.set("rc_uid", data.data.rc_uid, {
46+
sameSite: "None",
47+
secure: true,
48+
});
49+
Cookies.set("rc4git_token", data.data.rc4git_token, {
50+
sameSite: "None",
51+
secure: true,
52+
});
4453
Cookies.set("gh_login_token", data.data.gh_login_token);
4554
setAuthState({
4655
user: jwt_decode(data.data.rc4git_token),

0 commit comments

Comments
 (0)