@zimbra/api-client 100.0.0 → 100.1.0

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.
@@ -6911,10 +6911,15 @@ class ZimbraBatchClient {
6911
6911
  }
6912
6912
  };
6913
6913
  try {
6914
- const blob = new Blob([JSON.stringify(body)]);
6915
- if (navigator) {
6916
- navigator.sendBeacon(`${this.origin}/service/soap`, blob);
6917
- }
6914
+ fetch(`${this.origin}/service/soap`, {
6915
+ method: 'POST',
6916
+ keepalive: true,
6917
+ headers: {
6918
+ 'Content-Type': 'application/json',
6919
+ 'X-Zimbra-Csrf-Token': this.csrfToken || ''
6920
+ },
6921
+ body: JSON.stringify(body)
6922
+ });
6918
6923
  } catch (e) {
6919
6924
  throw new Error('Error on endSessionBeaconRequest request' + e);
6920
6925
  }