We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379a1bf commit 57438bdCopy full SHA for 57438bd
1 file changed
src/lib/api/next/base.ts
@@ -16,8 +16,9 @@ export async function GetJson<T>(
16
transformer: (data: unknown) => T
17
): Promise<T> {
18
const res = await fetch(BaseUrl + path, {
19
- headers: { accept: 'application/json' },
20
method: 'GET',
+ headers: { accept: 'application/json' },
21
+ credentials: 'include',
22
redirect: 'error',
23
});
24
@@ -50,6 +51,7 @@ export async function PostJson<T>(
50
51
accept: 'application/json',
52
},
53
body: JSON.stringify(body),
54
55
56
57
0 commit comments