alessiomaffeis / vue-picture-input

Mobile-friendly picture file input component for Vue.js 2-3 with image preview, drag and drop, EXIF orientation, and more
MIT License
888 stars 156 forks source link

Fetch mode set to no-cors #127

Closed izshreyansh closed 4 years ago

izshreyansh commented 4 years ago

Prefill settings, Load image from url fails because of CORS policy.

I've change fetch mode to no-cors on PictureInput.vue

alessiomaffeis commented 4 years ago

Hi! Thank you for contributing! :) What is your use case? Can't you really solve it by changing your CORS policy?

izshreyansh commented 4 years ago

I actually have two issues.

1) I'm trying to access image from my server & i'm not sure how i can set header when i'm accessing files directly like this http://server.com/images/test.png

2) However even after i changed fetch mode to no-cors i started getting new error. Image file size exceeds {SOME RANDOM NUMBER} When actually image size is in 13kb.