mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
fix: appName
This commit is contained in:
parent
0541ee36e6
commit
674093e84c
@ -54,8 +54,9 @@ export class APIClient extends APIClientSDK {
|
|||||||
|
|
||||||
getHeaders() {
|
getHeaders() {
|
||||||
const headers = super.getHeaders();
|
const headers = super.getHeaders();
|
||||||
if (this.app) {
|
const appName = this.app.getName();
|
||||||
headers['X-App'] = this.app.getName();
|
if (appName) {
|
||||||
|
headers['X-App'] = appName;
|
||||||
}
|
}
|
||||||
headers['X-Timezone'] = getCurrentTimezone();
|
headers['X-Timezone'] = getCurrentTimezone();
|
||||||
headers['X-Hostname'] = window?.location?.hostname;
|
headers['X-Hostname'] = window?.location?.hostname;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user