forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #1235 from xesrc/main
resolve problem about basic auth when the app is behind a proxy server
This commit is contained in:
commit
093df395c7
@ -45,9 +45,7 @@ const makeRequestParam = (
|
|||||||
|
|
||||||
function getHeaders() {
|
function getHeaders() {
|
||||||
const accessStore = useAccessStore.getState();
|
const accessStore = useAccessStore.getState();
|
||||||
const headers = {
|
let headers: Record<string, string> = {};
|
||||||
Authorization: "",
|
|
||||||
};
|
|
||||||
|
|
||||||
const makeBearer = (token: string) => `Bearer ${token.trim()}`;
|
const makeBearer = (token: string) => `Bearer ${token.trim()}`;
|
||||||
const validString = (x: string) => x && x.length > 0;
|
const validString = (x: string) => x && x.length > 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user