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