Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Saqib Ishfaq13,912 Points
i followed exactly what nick said in my VScode editor but i am getting this error in chrome but on firefox it works fine
Text track from origin 'file://' has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. Origin 'null' is therefore not allowed access.
Mohammed Ali11,128 Points
I has same issue too, it's chrome policy change, works fine on Firefox. However if anyone should run into same issue the best way is to set up simple HTTP Server. If you are using Unix system then running this line in the root folder of your project should fix it:
python2 -m SimpleHTTPServer 80 OR python3 -m http.server 80
80 is port number, you can use any port you prefer it doesn't have to be 80 only. If you are on Linux you might have to add sudo infront of it..
sudo python3 -m http.server 80 or
sudo python2 -m SimpleHTTPServer 80. hope you find it useful.