Updated the RequestUtil.js
This commit is contained in:
parent
d46fecedbb
commit
50fc6bd379
@ -1,6 +1,6 @@
|
||||
// Get the default headers of the request
|
||||
const getHeaders = () => {
|
||||
return localStorage.getItem("token") === undefined ? {Authorization: "Basic " + localStorage.getItem("token")} : {};
|
||||
return localStorage.getItem("token") ? {Authorization: "Basic " + localStorage.getItem("token")} : {};
|
||||
}
|
||||
|
||||
// Run a plain request with all default values
|
||||
|
Loading…
x
Reference in New Issue
Block a user