CORS Policy Error

This page cannot be opened directly from your file system due to browser security restrictions on JavaScript modules.

Why is this happening?

Modern browsers block JavaScript modules and some CSS features when loading files directly from your computer (using the file:// protocol) as a security measure.

Quick Solutions:

  1. Using VS Code? Install the "Live Server" extension and right-click this file → "Open with Live Server"
  2. Have Python? Open terminal/command prompt in this folder and run: python -m http.server then visit http://localhost:8000
  3. Have Node.js? Open terminal/command prompt in this folder and run: npx serve then visit the URL shown in terminal

Any of these options will start a local web server so the page works correctly without CORS errors.

Get Live Server Get Python Get Node.js