mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
perf: Optimize embedded compatibility for multi-domain verification
This commit is contained in:
committed by
fit2cloud-chenyw
parent
e881b3ef47
commit
0e418d2ee8
@@ -100,6 +100,9 @@ class HttpService {
|
||||
if (!assistantStore.getType || assistantStore.getType === 2) {
|
||||
config.headers['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
|
||||
}
|
||||
if (assistantStore.getHostOrigin) {
|
||||
config.headers['X-SQLBOT-HOST-ORIGIN'] = assistantStore.getHostOrigin
|
||||
}
|
||||
}
|
||||
const locale = getLocale()
|
||||
if (locale) {
|
||||
@@ -302,6 +305,9 @@ class HttpService {
|
||||
encodeURIComponent(assistantStore.getCertificate)
|
||||
)
|
||||
}
|
||||
if (assistantStore.getHostOrigin) {
|
||||
heads['X-SQLBOT-HOST-ORIGIN'] = assistantStore.getHostOrigin
|
||||
}
|
||||
if (!assistantStore.getType || assistantStore.getType === 2) {
|
||||
heads['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user