CORS error for Dato hosted WebVTT (.vtt) file using <video>

When I add a track to a video element that is a .vtt file hosted via dato assets I get a CORS error. Has anyone else run into this problem?

hello @dovetailstudios and welcome! :slight_smile:

Can you please show me an example where I can replicate the issue?

Yes. I have just encountered the issue using react-player as my video component.

If you go to https://www.safer.me/ and press the play button and check the console you will see the error

The issue is described here https://github.com/CookPete/react-player/issues/561

hi @powerboard , have you already trying using crossOrigin: 'true' as described in the Github issue you linked before?

hi @powerboard did crossOrigin: 'true' worked for your case? We also deployed a fix for CORS some minutes ago, so please try again.