From 6e892cb1dca2ebe370300973618592e877693051 Mon Sep 17 00:00:00 2001 From: kurpfish Date: Thu, 5 Aug 2021 17:41:52 +0300 Subject: [PATCH] no-cors mode remove --- src/server/server.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/server/server.js b/src/server/server.js index 15257f45..1e35ff08 100644 --- a/src/server/server.js +++ b/src/server/server.js @@ -2,7 +2,6 @@ export const fetchProfile = async (link, index) => { try { const response = await fetch(`${link}${index}`, { method: 'GET', - mode: 'no-cors', headers: { 'Access-Control-Request-Headers': 'authorization', 'Authorization': `Bearer ${localStorage.getItem('auth_token')}`, @@ -19,7 +18,6 @@ export const fetchSkills = async (link) => { try { const response = await fetch(link, { method: 'GET', - mode: 'no-cors', headers: { 'Access-Control-Request-Headers': 'authorization', 'Authorization': `Bearer ${localStorage.getItem('auth_token')}`, @@ -37,7 +35,6 @@ export const fetchItemsForId = async (link, id) => { try { const response = await fetch(`${link}${id}`, { method: 'GET', - mode: 'no-cors', headers: { 'Access-Control-Request-Headers': 'authorization', 'Authorization': `Bearer ${localStorage.getItem('auth_token')}`, @@ -54,7 +51,6 @@ export const fetchForm = async (link, info) => { try { const response = await fetch(link, { method: 'POST', - mode: 'no-cors', headers: { 'Access-Control-Request-Headers': 'authorization', 'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,