Jump to content
  • 0

CORS error with Token only


Antero
 Share

Question

Hello - I'm building out a custom player in React.js, using the play.html page as the template. I'm mostly interested in HLS playback - and have everything working perfectly... That is, only if I do not secure the playback url with a token (by selecting: 'Play with One-time Tokens' in the control panel).

As I'm using S3 to host the media files (mp4), could this be related to AWS? The specific error states: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Anyone else having a similar issue? Note: I'm using the video.js npm package to load the video.js player.
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

To clarify: I'm calling the m3u8 file from another server (in development I'm using a tunnel); Also, I tried adding the following to the web.xml file (these init-params are not included with the default web.xml file):

<init-param>
   <param-name>cors.exposed.headers</param-name>
   <param-value>Access-Control-Allow-Origin</param-value>
</init-param>

Seems it should be possible to load the file from another origin - after all, it is working when the token is turned off.
Link to comment
Share on other sites

 Share

×
×
  • Create New...