In order to get around cors issues regarding local files, you must setup a local server for local development. Just 3 simple steps:
-
Open a terminal or command prompt (on Windows you might need to open the command prompt as admin)
-
In the terminal type:
npm install -g http-server
Done!
From then on just cd
to the folder that has the files you want to serve and type
http-server
Then point your browser at http://localhost:8080/