There is a difference regarding CORS as I have explained here: HTML files: getting around CORS (cross-origin). The gist is that you can’t do AJAX calls from a page that is loaded via the file:// protocol.
2 Likes