Delete useless {credentials: "same-origin"}
This commit is contained in:
parent
f229a4ae7e
commit
e82b581e37
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user