HTML5 Canvas getImageData and Same Origin Policy

后端 未结 9 1397
夕颜
夕颜 2020-11-29 07:49

I have a site running at pixie.strd6.com and images hosted through Amazon S3 with a CNAME for images.pixie.strd6.com.

I would like to be able to draw these images to

9条回答
  •  醉酒成梦
    2020-11-29 08:26

    One possible solution is to use nginx to act as a proxy. Here is how to configure urls going to http://pixie.strd6.com/s3/ to pass on through to S3, but the browser can still believe that it is non-cross domain.

    location /s3/ {
      proxy_pass http://images.pixie.strd6.com/;
    }
    

提交回复
热议问题