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.js CHANGED
@@ -758,7 +758,12 @@ function createImaController(video, options) {
758
758
  return [
759
759
  4,
760
760
  fetch(vastTagUrl, {
761
- mode: "cors"
761
+ mode: "cors",
762
+ credentials: "include",
763
+ headers: {
764
+ "Accept": "application/xml, text/xml, */*"
765
+ },
766
+ referrerPolicy: "no-referrer-when-downgrade"
762
767
  })
763
768
  ];
764
769
  case 1:
@@ -1590,7 +1595,14 @@ function createHlsAdPlayer(contentVideo, options) {
1590
1595
  case 0:
1591
1596
  return [
1592
1597
  4,
1593
- fetch(vastTagUrl)
1598
+ fetch(vastTagUrl, {
1599
+ mode: "cors",
1600
+ credentials: "include",
1601
+ headers: {
1602
+ "Accept": "application/xml, text/xml, */*"
1603
+ },
1604
+ referrerPolicy: "no-referrer-when-downgrade"
1605
+ })
1594
1606
  ];
1595
1607
  case 1:
1596
1608
  response = _state.sent();
@@ -5059,7 +5071,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5059
5071
  return [
5060
5072
  4,
5061
5073
  fetch(vastTagUrl, {
5062
- mode: "cors"
5074
+ mode: "cors",
5075
+ credentials: "include",
5076
+ headers: {
5077
+ "Accept": "application/xml, text/xml, */*"
5078
+ },
5079
+ referrerPolicy: "no-referrer-when-downgrade"
5063
5080
  })
5064
5081
  ];
5065
5082
  case 1:
@@ -5158,7 +5175,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5158
5175
  return [
5159
5176
  4,
5160
5177
  fetch(vastTagUrl, {
5161
- mode: "cors"
5178
+ mode: "cors",
5179
+ credentials: "include",
5180
+ headers: {
5181
+ "Accept": "application/xml, text/xml, */*"
5182
+ },
5183
+ referrerPolicy: "no-referrer-when-downgrade"
5162
5184
  })
5163
5185
  ];
5164
5186
  case 1:
@@ -5325,10 +5347,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5325
5347
  4,
5326
5348
  fetch(mediaUrl, {
5327
5349
  mode: "cors",
5350
+ credentials: "include",
5328
5351
  method: "GET",
5329
5352
  headers: {
5330
5353
  Range: "bytes=0-1048576"
5331
- }
5354
+ },
5355
+ referrerPolicy: "no-referrer-when-downgrade"
5332
5356
  })
5333
5357
  ];
5334
5358
  case 2: