I have a T-shirt designing app (running on fabric.js 1.7.14) that has been working fine on iOS Safari for quite some time. Now, when I am calling toDataURL on canvas element, Safari throws a security error. The page in question is here:
https://ideashirt.pl/projektuj/koszulka-t-shirt-basic-kolor-meska
The weirdest thing is it can't be reproduced locally. When I access my local server from my iPhone everything works fine (both http and https). But when you access the page on ideashirt.pl from Safari on an iPhone and add some text to the T-shirt, the script fails when you want to add a product to cart. When you refresh the page and don't modify the canvas, it works. The elements are added in the same way when you add them manually and when they are added from the session after a refresh. This makes me think that maybe fabric somehow taints the canvas for Safari when you modify the elements on canvas.