to run it properly start a server project folder to avoid CORS problems python -m http.server project could be accessed at localhost:8000