You cannot use file:// if you use this (Chrome allows you to override this, but I will not recommend this).
For local testing, use a lightweight server like Mongoose, which allows you to use http://localhost as a domain to test your local pages. This way you will avoid problems with CORS.
If you need to place images in a different domain, you need to make sure that they support the use of different sources.
DropBox and ImgUrl (I recommend the latter only for images) support the use of CORS, but you need to request such use by adding the crossOrigin property to your image before setting up the source (or crossOrigin it in the HTML tag if you use it). ):
var img = new Image; img.onload = myLoader; img.crossOrigin = '';
or in HTML:
<img src="..." alt="" crossOrigin="anonymous" />
user1693593
source share