Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#1235 from xesrc/main
Browse files Browse the repository at this point in the history
resolve problem about basic auth when the app is behind a proxy server
  • Loading branch information
Yidadaa authored May 4, 2023
2 parents 92d2373 + a5fe9bc commit 093df39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,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;
Expand Down

0 comments on commit 093df39

Please sign in to comment.