How to enable CORS for html5 video loading vtt file?
问题 My Need html5 video element loads both a video and a vtt file saved in a different domain. The problem vtt is not loaded and error Text track from origin has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. My investigation I am aware that CORS needs to be used so vtt can be loaded in html5 successfully. I have enabled CORS on server side for requests from any domain. Some articles say adding crossorigin or