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.
@@ -804,7 +804,12 @@ function createImaController(video, options) {
804
804
  return [
805
805
  4,
806
806
  fetch(vastTagUrl, {
807
- mode: "cors"
807
+ mode: "cors",
808
+ credentials: "include",
809
+ headers: {
810
+ "Accept": "application/xml, text/xml, */*"
811
+ },
812
+ referrerPolicy: "no-referrer-when-downgrade"
808
813
  })
809
814
  ];
810
815
  case 1:
@@ -1636,7 +1641,14 @@ function createHlsAdPlayer(contentVideo, options) {
1636
1641
  case 0:
1637
1642
  return [
1638
1643
  4,
1639
- fetch(vastTagUrl)
1644
+ fetch(vastTagUrl, {
1645
+ mode: "cors",
1646
+ credentials: "include",
1647
+ headers: {
1648
+ "Accept": "application/xml, text/xml, */*"
1649
+ },
1650
+ referrerPolicy: "no-referrer-when-downgrade"
1651
+ })
1640
1652
  ];
1641
1653
  case 1:
1642
1654
  response = _state.sent();
@@ -5102,7 +5114,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5102
5114
  return [
5103
5115
  4,
5104
5116
  fetch(vastTagUrl, {
5105
- mode: "cors"
5117
+ mode: "cors",
5118
+ credentials: "include",
5119
+ headers: {
5120
+ "Accept": "application/xml, text/xml, */*"
5121
+ },
5122
+ referrerPolicy: "no-referrer-when-downgrade"
5106
5123
  })
5107
5124
  ];
5108
5125
  case 1:
@@ -5201,7 +5218,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5201
5218
  return [
5202
5219
  4,
5203
5220
  fetch(vastTagUrl, {
5204
- mode: "cors"
5221
+ mode: "cors",
5222
+ credentials: "include",
5223
+ headers: {
5224
+ "Accept": "application/xml, text/xml, */*"
5225
+ },
5226
+ referrerPolicy: "no-referrer-when-downgrade"
5205
5227
  })
5206
5228
  ];
5207
5229
  case 1:
@@ -5368,10 +5390,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5368
5390
  4,
5369
5391
  fetch(mediaUrl, {
5370
5392
  mode: "cors",
5393
+ credentials: "include",
5371
5394
  method: "GET",
5372
5395
  headers: {
5373
5396
  Range: "bytes=0-1048576"
5374
- }
5397
+ },
5398
+ referrerPolicy: "no-referrer-when-downgrade"
5375
5399
  })
5376
5400
  ];
5377
5401
  case 2: