I'm trying to get BLOB from local file URL. This is my code.
let url ="file:///storage/emulated/0/Download/AssetInfoXMLOxk!B1568355279906/1568355272623.jpeg";
fetch(url).then((res) => res.blob()).then((blob) => {
console.log(blob);
})
Unfortunately i'm not able get blob because of this error. from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https. How can I get blob from local file URL? Thanks in advance.
fetch(url)fetch