Include credentials in API requests

This commit is contained in:
dsyoon
2026-01-28 18:03:59 +09:00
parent a7ce739d55
commit feacb593fc

View File

@@ -26,6 +26,7 @@ async function request<T>(url: string, options?: RequestInit): Promise<T> {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
credentials: 'include',
...options, ...options,
}) })
if (!res.ok) { if (!res.ok) {