Include credentials in API requests
This commit is contained in:
@@ -26,6 +26,7 @@ async function request<T>(url: string, options?: RequestInit): Promise<T> {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
credentials: 'include',
|
||||
...options,
|
||||
})
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user