[feat] hide headers in web by proxy

This commit is contained in:
kwaroran
2023-06-23 12:25:02 +09:00
parent accabf69e7
commit 251ee1c30b
2 changed files with 24 additions and 11 deletions

View File

@@ -373,7 +373,7 @@ export async function loadData() {
}
}
const knownHostes = ["localhost","127.0.0.1","api.openai.com"]
const knownHostes = ["localhost","127.0.0.1"]
export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:string]:string}, rawResponse?:boolean, method?:"POST"|"GET", abortSignal?:AbortSignal} = {}): Promise<{
ok: boolean;