Remove useless CORD headerss
This commit is contained in:
@@ -6,7 +6,6 @@ export const fetchCustomerData = async (id: string) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${baseUrl}/loota/${id}`, {
|
const response = await fetch(`${baseUrl}/loota/${id}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
mode: "cors",
|
|
||||||
});
|
});
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
@@ -24,7 +23,6 @@ export const markBoxPickedUp = async (id: string) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${baseUrl}/loota/`, {
|
const response = await fetch(`${baseUrl}/loota/`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: "cors",
|
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
@@ -46,7 +44,6 @@ export const markBoxDelivered = async (id: string) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${baseUrl}/loota/`, {
|
const response = await fetch(`${baseUrl}/loota/`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: "cors",
|
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user