commit
b0e85f3cc7
@ -2,7 +2,6 @@ export const fetchProfile = async (link, index) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${link}${index}`, {
|
const response = await fetch(`${link}${index}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
mode: 'no-cors',
|
|
||||||
headers: {
|
headers: {
|
||||||
'Access-Control-Request-Headers': 'authorization',
|
'Access-Control-Request-Headers': 'authorization',
|
||||||
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
||||||
@ -19,7 +18,6 @@ export const fetchSkills = async (link) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(link, {
|
const response = await fetch(link, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
mode: 'no-cors',
|
|
||||||
headers: {
|
headers: {
|
||||||
'Access-Control-Request-Headers': 'authorization',
|
'Access-Control-Request-Headers': 'authorization',
|
||||||
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
||||||
@ -37,7 +35,6 @@ export const fetchItemsForId = async (link, id) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${link}${id}`, {
|
const response = await fetch(`${link}${id}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
mode: 'no-cors',
|
|
||||||
headers: {
|
headers: {
|
||||||
'Access-Control-Request-Headers': 'authorization',
|
'Access-Control-Request-Headers': 'authorization',
|
||||||
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
||||||
@ -54,7 +51,6 @@ export const fetchForm = async (link, info) => {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(link, {
|
const response = await fetch(link, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: 'no-cors',
|
|
||||||
headers: {
|
headers: {
|
||||||
'Access-Control-Request-Headers': 'authorization',
|
'Access-Control-Request-Headers': 'authorization',
|
||||||
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
'Authorization': `Bearer ${localStorage.getItem('auth_token')}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user