This commit is contained in:
Adria Navarro 2025-03-10 12:03:21 +01:00
parent dd6320ec0f
commit 1cb87d8f17
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ export const API = createAPIClient({
// Attach client specific headers
attachHeaders: headers => {
// Attach app ID header
headers["x-budibase-app-id"] = window["##BUDIBASE_APP_ID##"]
if (window["##BUDIBASE_APP_ID##"]) {
headers["x-budibase-app-id"] = window["##BUDIBASE_APP_ID##"]
}
// Attach client header if not inside the builder preview
if (!window["##BUDIBASE_IN_BUILDER##"]) {