I have a video control on a localhost
with closed captions. I have the virtual host static
defined that points to the same directory as localhost
. Static feeds my media files and has worked forever... except it seems with video caption files.
If the track src
is set to static
, the captions won't show. Chrome console gives the error:
Unsafe attempt to load URL https://static/file.vtt from the frame with URL https://localhost/page.php. Domains, protocols, and ports must match.
I've tried the advice at the post issue-with-loading-vtt-from-cross-domain and set both values for cross-origin
with no luck. Is this a localhost
only issue? Any solutions to this?
video.crossorigin="anonymous";
video.crossorigin="use-credentials";