Skip to main content

23 posts tagged with "HTML"

HTML, the Markup Language of Web Pages, with Elements, Attributes and Forms

View All Tags

Fixed: Access to script at 'file:///…' from origin 'null' has been blocked by CORS policy

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I opened a small web page straight from the disk, and its script didn't run. Chrome's console said Access to script at 'file:///…' from origin 'null' has been blocked by CORS policy. Nothing was wrong with the script: the browser won't make that kind of request for a file on the disk, and a one-line local web server fixes it.