mirror of
https://github.com/Harry-zklcdc/go-proxy-bingai.git
synced 2024-05-03 14:25:13 +08:00
feat: ✨ localhost 开发调试支持
This commit is contained in:
parent
8ba4b1e332
commit
cf94832ef0
@ -104,7 +104,7 @@ Go_Proxy_BingAI_SOCKS_PWD=xxx
|
||||
|
||||
## 部署
|
||||
|
||||
> 需 https 域名 (自行配置 nginx 等)
|
||||
> ⭐ 需 https 域名 (自行配置 nginx 等) (前后端都有限制 只有在HTTPS的情况下,浏览器 Accept-Encoding 才会包含 br , localhost 除外)
|
||||
|
||||
> 支持 Linux (amd64 / arm64)、Windows (amd64 / arm64)
|
||||
|
||||
|
@ -195,6 +195,11 @@ async function clearCache() {
|
||||
// 隐藏加载中
|
||||
hideLoading();
|
||||
|
||||
// 支持 localhost 可开发调试用
|
||||
if (location.hostname === 'localhost') {
|
||||
CIB.config.sydney.hostnamesToBypassSecureConnection = CIB.config.sydney.hostnamesToBypassSecureConnection.filter((x) => x !== location.hostname);
|
||||
}
|
||||
|
||||
// todo 反馈暂时无法使用,先移除
|
||||
document
|
||||
.querySelector('cib-serp')
|
||||
|
Loading…
Reference in New Issue
Block a user