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