ailon / markerjs

[Deprecated - use markerjs2]: Let your users annotate and mark images
https://markerjs.com
MIT License
103 stars 32 forks source link

Render callback throws error #36

Closed bribar closed 4 years ago

bribar commented 4 years ago

After placing markers and trying to save the image I get this output in console.

image

The images are from AWS S3, and the CORS policy includes this rule on the bucket

`

*
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>

`

Using latest markerjs library. Chrome Version 84.0.4147.89 (Official Build) (64-bit)

I tried with an image from same domain and it works.

bribar commented 4 years ago

Well, I figured out my own issue after cloning the repository and finding that adding crossorigin="anonymous" attribute to the image fixes the problem.