mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:18:03 +00: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