This results in a tainted canvas error when trying to generateBlob() from the photo selected for upload by the user. I know I could add crossorigin="anonymous" to the image element but then I need my firebase storage cors policy to allow anonymous origins which doesn't seem like a fair solution to the issue. How could I solve that issue more specifically?
Why does croppa need crossorigin="anonymous" while loading the image outside of the croppa tag works just fine (same origin).
Setup 1
This results in a
tainted canvas
error when trying togenerateBlob()
from the photo selected for upload by the user. I know I could addcrossorigin="anonymous"
to the image element but then I need my firebase storage cors policy to allow anonymous origins which doesn't seem like a fair solution to the issue. How could I solve that issue more specifically?Why does croppa need
crossorigin="anonymous"
while loading the image outside of the croppa tag works just fine (same origin).