vue-croppa icon indicating copy to clipboard operation
vue-croppa copied to clipboard

CORS Problem issue.

Open rubencool opened this issue 7 years ago • 1 comments

I found CORS Problem in your library. While uploading Avtar image there wasn`t problem. so when i was uploading photo from list of photo i had saved from gallary then CORS problem aries.. i had shown error message below what i got..

Access to Image at 'http://xx.xxx.xxx.xxx:8000/media/gallery/travelBus_F0ck4Gd.png' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

Sorry that i cannot show my real server ip for security reason. so x denote server ip. so how can i solve these issue ?

rubencool avatar Aug 01 '18 06:08 rubencool

Make sure the server response of the image has the header Access-Control-Allow-Originset to *, otherwise it means the resource can not be accessed from other origins.

zhanziyang avatar Aug 02 '18 05:08 zhanziyang