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.
@@ -768,7 +768,12 @@ function createImaController(video, options) {
768
768
  return [
769
769
  4,
770
770
  fetch(vastTagUrl, {
771
- mode: "cors"
771
+ mode: "cors",
772
+ credentials: "include",
773
+ headers: {
774
+ "Accept": "application/xml, text/xml, */*"
775
+ },
776
+ referrerPolicy: "no-referrer-when-downgrade"
772
777
  })
773
778
  ];
774
779
  case 1:
@@ -1600,7 +1605,14 @@ function createHlsAdPlayer(contentVideo, options) {
1600
1605
  case 0:
1601
1606
  return [
1602
1607
  4,
1603
- fetch(vastTagUrl)
1608
+ fetch(vastTagUrl, {
1609
+ mode: "cors",
1610
+ credentials: "include",
1611
+ headers: {
1612
+ "Accept": "application/xml, text/xml, */*"
1613
+ },
1614
+ referrerPolicy: "no-referrer-when-downgrade"
1615
+ })
1604
1616
  ];
1605
1617
  case 1:
1606
1618
  response = _state.sent();
@@ -5066,7 +5078,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5066
5078
  return [
5067
5079
  4,
5068
5080
  fetch(vastTagUrl, {
5069
- mode: "cors"
5081
+ mode: "cors",
5082
+ credentials: "include",
5083
+ headers: {
5084
+ "Accept": "application/xml, text/xml, */*"
5085
+ },
5086
+ referrerPolicy: "no-referrer-when-downgrade"
5070
5087
  })
5071
5088
  ];
5072
5089
  case 1:
@@ -5165,7 +5182,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5165
5182
  return [
5166
5183
  4,
5167
5184
  fetch(vastTagUrl, {
5168
- mode: "cors"
5185
+ mode: "cors",
5186
+ credentials: "include",
5187
+ headers: {
5188
+ "Accept": "application/xml, text/xml, */*"
5189
+ },
5190
+ referrerPolicy: "no-referrer-when-downgrade"
5169
5191
  })
5170
5192
  ];
5171
5193
  case 1:
@@ -5332,10 +5354,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5332
5354
  4,
5333
5355
  fetch(mediaUrl, {
5334
5356
  mode: "cors",
5357
+ credentials: "include",
5335
5358
  method: "GET",
5336
5359
  headers: {
5337
5360
  Range: "bytes=0-1048576"
5338
- }
5361
+ },
5362
+ referrerPolicy: "no-referrer-when-downgrade"
5339
5363
  })
5340
5364
  ];
5341
5365
  case 2: