Added Authorization header

master
Tudor Stanciu 2020-05-09 16:14:11 +03:00
parent 7a16c738b4
commit 5609267b44
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -2,7 +2,8 @@ import axios from "axios";
function getHeaders() {
return {
"Content-Type": "application/json"
"Content-Type": "application/json",
Authorization: "Basic ***REMOVED***"
};
}