advanced-cropper / vue-advanced-cropper

The advanced vue cropper library that gives you opportunity to create your own croppers suited for any website design
https://advanced-cropper.github.io/vue-advanced-cropper/
Other
977 stars 132 forks source link

Missing Cookies on CORS requests #283

Open mfrro opened 3 months ago

mfrro commented 3 months ago

Cookies aren't sent along with CORS requests. A use case for this is access to private resources, where access tokens are stored in cookies. For example AWS CloudFront with signed cookies.

Simple fix would be to just set withCredentials=true for image requests.

https://github.com/advanced-cropper/vue-advanced-cropper/blob/c0c36528ba7f0a016c27d99ad0605c7a6fd687b5/src/core/image.ts#L151