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.
@@ -716,7 +716,12 @@ function createImaController(video, options) {
716
716
  return [
717
717
  4,
718
718
  fetch(vastTagUrl, {
719
- mode: "cors"
719
+ mode: "cors",
720
+ credentials: "include",
721
+ headers: {
722
+ "Accept": "application/xml, text/xml, */*"
723
+ },
724
+ referrerPolicy: "no-referrer-when-downgrade"
720
725
  })
721
726
  ];
722
727
  case 1:
@@ -1548,7 +1553,14 @@ function createHlsAdPlayer(contentVideo, options) {
1548
1553
  case 0:
1549
1554
  return [
1550
1555
  4,
1551
- fetch(vastTagUrl)
1556
+ fetch(vastTagUrl, {
1557
+ mode: "cors",
1558
+ credentials: "include",
1559
+ headers: {
1560
+ "Accept": "application/xml, text/xml, */*"
1561
+ },
1562
+ referrerPolicy: "no-referrer-when-downgrade"
1563
+ })
1552
1564
  ];
1553
1565
  case 1:
1554
1566
  response = _state.sent();
@@ -5014,7 +5026,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5014
5026
  return [
5015
5027
  4,
5016
5028
  fetch(vastTagUrl, {
5017
- mode: "cors"
5029
+ mode: "cors",
5030
+ credentials: "include",
5031
+ headers: {
5032
+ "Accept": "application/xml, text/xml, */*"
5033
+ },
5034
+ referrerPolicy: "no-referrer-when-downgrade"
5018
5035
  })
5019
5036
  ];
5020
5037
  case 1:
@@ -5113,7 +5130,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5113
5130
  return [
5114
5131
  4,
5115
5132
  fetch(vastTagUrl, {
5116
- mode: "cors"
5133
+ mode: "cors",
5134
+ credentials: "include",
5135
+ headers: {
5136
+ "Accept": "application/xml, text/xml, */*"
5137
+ },
5138
+ referrerPolicy: "no-referrer-when-downgrade"
5117
5139
  })
5118
5140
  ];
5119
5141
  case 1:
@@ -5280,10 +5302,12 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
5280
5302
  4,
5281
5303
  fetch(mediaUrl, {
5282
5304
  mode: "cors",
5305
+ credentials: "include",
5283
5306
  method: "GET",
5284
5307
  headers: {
5285
5308
  Range: "bytes=0-1048576"
5286
- }
5309
+ },
5310
+ referrerPolicy: "no-referrer-when-downgrade"
5287
5311
  })
5288
5312
  ];
5289
5313
  case 2: