🐛 User related requests enable with credentials to prevent some errors
This commit is contained in:
@ -90,6 +90,7 @@ const panel = ref("confirm")
|
||||
async function tryAuthorize() {
|
||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/o/authorize` + window.location.search, {
|
||||
headers: { Authorization: `Bearer ${getAtk()}` },
|
||||
credentials: "include",
|
||||
})
|
||||
|
||||
if (res.status !== 200) {
|
||||
@ -123,6 +124,7 @@ async function approve() {
|
||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/o/authorize` + window.location.search, {
|
||||
method: "POST",
|
||||
headers: { Authorization: `Bearer ${getAtk()}` },
|
||||
credentials: "include",
|
||||
})
|
||||
|
||||
if (res.status !== 200) {
|
||||
|
Reference in New Issue
Block a user