Let say I have an image tag in my page:
<img src="https://i.picsum.photos/id/949/200/300.jpg" alt="foo" />
- The src path is an absolute path address and not a data URI
- The src path could be from other site (CORS)
How to download that image and convert File object or binary file in vanilla JavaScript without having CORS issue?