Delete useless {credentials: "same-origin"}

This commit is contained in:
qowevisa 2024-11-10 08:27:24 +02:00
parent f229a4ae7e
commit e82b581e37

View File

@ -18,7 +18,7 @@
}); });
async function fetchCards() { async function fetchCards() {
const result = await fetch("/api/card/all", { credentials: "same-origin" }); const result = await fetch("/api/card/all");
if (!result.ok) { if (!result.ok) {
const obj = await result.json(); const obj = await result.json();
error = obj.message; error = obj.message;