@devskin/browser-sdk 1.0.45 → 1.0.47

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.
@@ -13775,7 +13775,8 @@ class Transport {
13775
13775
  const xhr = new XMLHttpRequest();
13776
13776
  xhr.open('POST', url, true);
13777
13777
  xhr.setRequestHeader('Content-Type', 'application/json');
13778
- xhr.setRequestHeader('Authorization', `Bearer ${this.config.apiKey}`);
13778
+ xhr.setRequestHeader('X-API-Key', this.config.apiKey);
13779
+ xhr.setRequestHeader('X-App-Id', this.config.appId);
13779
13780
  xhr.onload = () => {
13780
13781
  if (xhr.status >= 200 && xhr.status < 300) {
13781
13782
  if (this.config.debug) {
@@ -13835,7 +13836,8 @@ class Transport {
13835
13836
  method: 'POST',
13836
13837
  headers: {
13837
13838
  'Content-Type': 'application/json',
13838
- Authorization: `Bearer ${this.config.apiKey}`,
13839
+ 'X-API-Key': this.config.apiKey,
13840
+ 'X-App-Id': this.config.appId,
13839
13841
  },
13840
13842
  body: JSON.stringify(payload),
13841
13843
  // Use keepalive for better reliability during page unload