I'm using Amazon S3 and cloud front. The image url look like https://t.pimg.jp/061/089/535/2/61089535.jpg
My code look like
const imgUrl = 'https://t.pimg.jp/061/089/535/2/61089535.jpg';
fabric.util.loadImage(imgUrl, function(imgObj) {
const oImg = new fabric.Image(imgObj, {
crossOrigin: 'anonymous',
});
...
});
The image loaded successfully. But when I apply filter to that image, the error appears.
Already applied the cors config at s3 bucket
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Do anyone know how to fix?