So my question is somewhat related to Firefox SecurityError: "The operation is insecure.". Uploading image works on all browsers expect Firefox Android App, It throws SecurityError. I am not able to understand how this is CORS issue. The image is just read from the FileReader and displayed in the UI.
reader.onload = (e) => {
this.displayImage(e.target.result, file.name);
this.toggleUploadInput();
};
reader.onerror = (e) => {
alert('error:'+ e.target.error.name);
};
Any help will be appreciated. Thanks.