cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.29k stars 485 forks source link

If the request is proxified, do not add empty "Authorization" header. #194

Open romamik opened 7 months ago

romamik commented 7 months ago

If the whole app is behind http auth, browser adds auth header to all requests, but adding it empty overrides header added by browser.

So, I just basically tried hosting my own instance behind basic HTTP auth (added through reverse proxy) and had to fix this for it to work.