From 5609267b443020791a4911c7f120bd87416e1ee3 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 9 May 2020 16:14:11 +0300 Subject: [PATCH] Added Authorization header --- src/api/api.js | 1 + src/api/axiosApi.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/api.js b/src/api/api.js index 3f67f4a..c4d183a 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,6 +2,7 @@ function getHeaders() { const headers = new Headers(); headers.append("Accept", "application/json"); headers.append("Content-Type", "application/json"); + headers.append("Authorization", "Basic ***REMOVED***"); return headers; } diff --git a/src/api/axiosApi.js b/src/api/axiosApi.js index 0856b75..8321abf 100644 --- a/src/api/axiosApi.js +++ b/src/api/axiosApi.js @@ -2,7 +2,8 @@ import axios from "axios"; function getHeaders() { return { - "Content-Type": "application/json" + "Content-Type": "application/json", + Authorization: "Basic ***REMOVED***" }; }