Open berndbausch opened 5 years ago
Anyone solve this problem?
Not necessarily live-server, but you need a server/localserver to do AJAX requests.. otherwise it will throw.
It is easy to work with live-server, but there are other alternatives too, like http-server
https://github.com/http-party/http-server
Just starting! And already hitting a minor roadblock. Both the code I wrote and the code from Github lead to an error in my browser when it tries to fetch the image:
This is Firefox 68 on Xubuntu. I solved the problem by hosting the picture on a web server (the node.js/express.js web server from video 2.1 :)), but I wonder why I am the only one with this problem?
EDIT: Dan uses live-server, and on its web site, I read
So I feel validated! But my question remains - is everybody using live-server or are there other methods to get around cross-origin problems?