lusaxweb / vuesax

New Framework Components for Vue.js 2
https://lusaxweb.github.io/vuesax/
MIT License
5.64k stars 741 forks source link

File upload doesn't work with Cloudinary or Imagekit #989

Open ahmed-adly-khalil opened 3 years ago

ahmed-adly-khalil commented 3 years ago

I'm using this vs-upload with cloudinary and getting CORS error, I have no control over cloudinary server to add cors response header. I tried also with ImageKit with the same result.


Access to XMLHttpRequest at 'https://upload.imagekit.io/api/v1/files/upload' from origin '...' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.```

I think this is related to the underlying upload post request that the component is using. any luck to solve this? 
jespanag commented 3 years ago

If you still need this, install https://github.com/jespanag/vuesax

I changed vs-upload component to allow request withCredentials false.