Cors error while downloading image from S3

前端 未结 1 1302
不思量自难忘°
不思量自难忘° 2021-01-24 21:34

I am converting a div into an downloadable image.

function generateBanner() {
    domtoimage.toBlob(document.getElementById(\'wrapper\'))
    .then(function(blob         


        
相关标签:
1条回答
  • 2021-01-24 22:03

    You're missing <AllowedMethod>HEAD</AllowedMethod>

    Then you should see the following headers:

    Access-Control-Allow-Origin: *
    Access-Control-Allow-Methods: GET, HEAD, POST
    Access-Control-Max-Age: 3000
    

    Have in mind, that it could take a while before you see the correct headers.

    0 讨论(0)
提交回复
热议问题