mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	resolve problem about basic auth when the app is behind a proxy server
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user