|
@@ -15,7 +15,7 @@ export default function Header() {
|
|
|
|
|
|
const logOut = async () => {
|
|
|
const res = await fetch("https://beta.api.cocorobo.cn/api/logout", {
|
|
|
- method: "POST",
|
|
|
+ method: "POST", credentials: 'include'
|
|
|
});
|
|
|
await signOut({ redirect: false })
|
|
|
}
|