CORS on cropper js while cropping only

90 views Asked by At

I am using livewire's WIthFIleUploads trait for image handling. After a temp image is previewed I am using cropper js to crop the image. The images are being stored on digital ocean spaces so I am getting a CORS error while cropping. I have a digital ocean CORS policy in place. Below are some screenshots of my code.

Here is my DO policy

enter image description here

Here is my image tag with corss origin attribute (ref: https://github.com/fengyuanchen/cropperjs/issues/413#issuecomment-419896312)

enter image description here

Here is my crooper obj (ref: https://github.com/fengyuanchen/cropperjs/issues/413#issuecomment-419896312)

enter image description here

Here is my error, the issue is that the cropper object is getting a timestamped url which is not opening and causing the cors I believe

enter image description here

I want the cropper to work fine with s3 as it works with local storage

0

There are 0 answers