⏪ Rollback server side set cookie
This commit is contained in:
@ -131,7 +131,6 @@ async function readTickets({ page, itemsPerPage }: { page?: number; itemsPerPage
|
||||
}),
|
||||
{
|
||||
headers: { Authorization: `Bearer ${useAtk().value}` },
|
||||
credentials: "include",
|
||||
},
|
||||
)
|
||||
if (res.status !== 200) {
|
||||
@ -157,7 +156,6 @@ async function readEvents({ page, itemsPerPage }: { page?: number; itemsPerPage?
|
||||
}),
|
||||
{
|
||||
headers: { Authorization: `Bearer ${useAtk().value}` },
|
||||
credentials: "include",
|
||||
},
|
||||
)
|
||||
if (res.status !== 200) {
|
||||
@ -177,7 +175,6 @@ async function killTicket(item: any) {
|
||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/users/me/tickets/${item.id}`, {
|
||||
method: "DELETE",
|
||||
headers: { Authorization: `Bearer ${useAtk().value}` },
|
||||
credentials: "include",
|
||||
})
|
||||
if (res.status !== 200) {
|
||||
error.value = await res.text()
|
||||
|
Reference in New Issue
Block a user