stormcloud-video-player 0.3.18 → 0.3.20

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.
package/lib/index.cjs CHANGED
@@ -924,7 +924,12 @@ function createImaController(video, options) {
924
924
  return [
925
925
  4,
926
926
  fetch(vastTagUrl, {
927
- mode: "cors"
927
+ mode: "cors",
928
+ credentials: "include",
929
+ headers: {
930
+ "Accept": "application/xml, text/xml, */*"
931
+ },
932
+ referrerPolicy: "no-referrer-when-downgrade"
928
933
  })
929
934
  ];
930
935
  case 1:
@@ -1756,7 +1761,14 @@ function createHlsAdPlayer(contentVideo, options) {
1756
1761
  case 0:
1757
1762
  return [
1758
1763
  4,
1759
- fetch(vastTagUrl)
1764
+ fetch(vastTagUrl, {
1765
+ mode: "cors",
1766
+ credentials: "include",
1767
+ headers: {
1768
+ "Accept": "application/xml, text/xml, */*"
1769
+ },
1770
+ referrerPolicy: "no-referrer-when-downgrade"
1771
+ })
1760
1772
  ];
1761
1773
  case 1:
1762
1774
  response = _state.sent();
@@ -5222,7 +5234,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5222
5234
  return [
5223
5235
  4,
5224
5236
  fetch(vastTagUrl, {
5225
- mode: "cors"
5237
+ mode: "cors",
5238
+ credentials: "include",
5239
+ headers: {
5240
+ "Accept": "application/xml, text/xml, */*"
5241
+ },
5242
+ referrerPolicy: "no-referrer-when-downgrade"
5226
5243
  })
5227
5244
  ];
5228
5245
  case 1:
@@ -5321,7 +5338,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5321
5338
  return [
5322
5339
  4,
5323
5340
  fetch(vastTagUrl, {
5324
- mode: "cors"
5341
+ mode: "cors",
5342
+ credentials: "include",
5343
+ headers: {
5344
+ "Accept": "application/xml, text/xml, */*"
5345
+ },
5346
+ referrerPolicy: "no-referrer-when-downgrade"
5325
5347
  })
5326
5348
  ];
5327
5349
  case 1:
@@ -5488,10 +5510,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5488
5510
  4,
5489
5511
  fetch(mediaUrl, {
5490
5512
  mode: "cors",
5513
+ credentials: "include",
5491
5514
  method: "GET",
5492
5515
  headers: {
5493
5516
  Range: "bytes=0-1048576"
5494
- }
5517
+ },
5518
+ referrerPolicy: "no-referrer-when-downgrade"
5495
5519
  })
5496
5520
  ];
5497
5521
  case 2: