From e83b1bad458b6edf4aebfd360db0585eff7d00c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Tue, 17 Jun 2025 18:45:18 +0300 Subject: [PATCH] Remove useless CORD headerss --- app/api.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/api.ts b/app/api.ts index 277f797..dd11511 100644 --- a/app/api.ts +++ b/app/api.ts @@ -6,7 +6,6 @@ export const fetchCustomerData = async (id: string) => { try { const response = await fetch(`${baseUrl}/loota/${id}`, { method: 'GET', - mode: "cors", }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); @@ -24,7 +23,6 @@ export const markBoxPickedUp = async (id: string) => { try { const response = await fetch(`${baseUrl}/loota/`, { method: 'POST', - mode: "cors", headers: { 'Content-Type': 'application/json', }, @@ -46,7 +44,6 @@ export const markBoxDelivered = async (id: string) => { try { const response = await fetch(`${baseUrl}/loota/`, { method: 'POST', - mode: "cors", headers: { 'Content-Type': 'application/json', },