feat: add trusted ticket intake workspace
This commit is contained in:
@@ -43,7 +43,7 @@ async function getCsrfToken() {
|
||||
|
||||
export async function apiRequest<T>(path: string, init?: RequestInit): Promise<T> {
|
||||
const headers = new Headers(init?.headers)
|
||||
if (init?.body && !headers.has('content-type')) {
|
||||
if (init?.body && !(init.body instanceof FormData) && !headers.has('content-type')) {
|
||||
headers.set('content-type', 'application/json')
|
||||
}
|
||||
const method = init?.method?.toUpperCase() ?? 'GET'
|
||||
|
||||
Reference in New Issue
Block a user