@wandelbots/nova-js 2.1.3 → 2.1.4

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.
@@ -2293,7 +2293,9 @@ var NovaClient = class {
2293
2293
  }
2294
2294
  const axiosInstance = axios2.create({
2295
2295
  baseURL: urlJoin(this.config.instanceUrl, "/api/v1"),
2296
- headers: {
2296
+ // TODO - backend needs to set proper CORS headers for this
2297
+ headers: typeof window !== "undefined" && window.location.origin.includes("localhost") ? {} : {
2298
+ // Identify the client to the backend for logging purposes
2297
2299
  "X-Wandelbots-Client": "Wandelbots-Nova-JS-SDK"
2298
2300
  }
2299
2301
  });