Thanks for the http-server instructions. But the results are the same when accessing the file via http://localhost:8080
I actually figured out how to get it working sticking with the file approach: It turns out if I take out “crossorigin” then it works in Chrome!
There’s a discussion of this at With <script crossorigin=‘anonymous’>, why is a script “blocked by CORS policy”?