@tacoreai/web-sdk 1.22.1-beta.1 → 1.22.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { getAppsApiBaseUrl, isBrowser, isBackend, isSSR, getGlobalOptions } from
2
2
 
3
3
  const ACCESS_TOKEN_STORAGE_KEY = "tacoreai_apps_access_token";
4
4
  const PREVIEW_APPSERVER_API_KEY_HEADER = "x-tacore-preview-app-server-api-key";
5
- const APP_SERVER_API_KEY_HEADER = "x-tacore-app-server-api-key";
5
+ const FORWARDED_APP_SERVER_API_KEY_HEADER = "x-tacore-forwarded-app-server-api-key";
6
6
  const APP_SERVER_SERVICE_TOKEN_HEADER = "x-tacore-app-server-service-token";
7
7
  const APP_SERVER_OWNER_APP_ID_HEADER = "x-tacore-app-server-owner-app-id";
8
8
  const APP_SERVER_SERVICE_CREDENTIAL_REQUIRED_ERROR =
@@ -208,8 +208,8 @@ export class BaseAppsClient {
208
208
  headers["x-tacore-server-interop-app-server-api-key"] = this.config.tacoreServerInteropAppServerApiKey;
209
209
  headers[APP_SERVER_SERVICE_TOKEN_HEADER] = this.config.tacoreAppServerServiceToken;
210
210
  headers[APP_SERVER_OWNER_APP_ID_HEADER] = this.config.appServerOwnerAppId || this.config.appId || process.env.APP_ID || this.appId;
211
- } else if (this.config.appServerApiKey && !headers[APP_SERVER_API_KEY_HEADER]) {
212
- headers[APP_SERVER_API_KEY_HEADER] = this.config.appServerApiKey;
211
+ } else if (this.config.appServerApiKey && !headers[FORWARDED_APP_SERVER_API_KEY_HEADER]) {
212
+ headers[FORWARDED_APP_SERVER_API_KEY_HEADER] = this.config.appServerApiKey;
213
213
  } else if (
214
214
  isBackendPreviewMode() &&
215
215
  this.config.previewAppServerApiKey &&
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tacoreai/web-sdk",
3
3
  "description": "This file is for app server package, not the real npm package",
4
- "version": "1.22.1-beta.1",
4
+ "version": "1.22.1-beta.2",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public",