-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Safari HTTPS data url cross origin error #536
Comments
I see. Do you have any solution for this? |
This only seems to be a problem with 2.2.0. |
You need to set the response header |
@fengyuanchen |
Okay~ I have no solution yet. You might need to set the |
Can't you use a canvas instead of ajax to convert the image to ArrayBuffer? |
@fracsi How about use a Blob URL ( |
Please update to the v2.2.1. |
I believe I just had the same issue on an older Chrome 37 The issue was solved by using This worked for me because I originally got the data-url using a FileReader() which means I had a Thanks, |
@michael-go You can try the latest version (v2.2.1), it doesn't load Data URL by |
@fengyuanchen This was the first thing I tried, but it didn't help in my case - I double-checked it now and still get the error with Data URL. |
@fengyuanchen |
哥们,2.2.1没更新到位呀! 最新文件还是2.2.0的 |
@fracsi @qiankaijie Sorry~ I forgot to submit the release files...It's done now. |
On OSX and iOS Safari if i try to combine cropper with a file uploader (uploading only occurs after submit) on HTTPS, passing the data uri to cropper, the XHR request which transforms the data uri to ArrayBuffer is denied because of the cross-origin policy (only allowed on HTTP).
The text was updated successfully, but these errors were encountered: