This commit is contained in:
2026-01-25 19:18:34 +07:00
parent 770c09b9b2
commit 8bdcbbf527
6 changed files with 200 additions and 16 deletions

View File

@@ -29,12 +29,6 @@ export const customFetch = (url: string, options: RequestInit) => {
// res.headers.forEach((value, key) => {
// c.header(key, value);
// });
return fetch(apiUrl, options).then(res => {
// Forward response headers to client (especially Set-Cookie)
res.headers.forEach((value, key) => {
c.header(key, value);
});
return res;
});
return fetch(apiUrl, options)
}
}