resolve problem about basic auth when the app is behind a proxy server

This commit is contained in:
xesrc 2023-05-04 16:11:44 +08:00
parent 637660df2a
commit a5fe9bc6d6

View File

@ -44,9 +44,7 @@ const makeRequestParam = (
function getHeaders() {
const accessStore = useAccessStore.getState();
const headers = {
Authorization: "",
};
let headers: Record<string, string> = {};
const makeBearer = (token: string) => `Bearer ${token.trim()}`;
const validString = (x: string) => x && x.length > 0;