Closed thinhbg2812-2 closed 3 years ago
Hello @mrtk0y!
The reason why the image is CORS blocked is there's no Access-Control-Allow-Origin
on the response header of your image server.
You can try those solutions:
Sir, it's not the S3 i tried the CDN image random on google , and it's same result
PanoViewer's images always should be loaded with the CORS setting as it's drawed on the canvas via WebGL. Without it, you'll meet "Tainted canvases may not be loaded" error and the image won't be rendered because of the CORS issue.
The other CDN images you've tried are blocked for the same reason.
Like I've said, you must set Access-Control-Allow-Origin
to "*" or specific URLs on the response header of your image server, or you can't use it by any means.
Also, crossorigin="anonymous" means it'll use CORS mode, not disabling it.
Ye, i requested Backend to add the crossOrigin to S3, and it's working fine now. Tks for your support sir <3
Description
Access image from s3 has been blocked by CORS even have crossorigin="anonymous"
System and Tech
Steps to check or reproduce
and called Pano Component
But result is CORS