javascriptgoogle-chrome-devtoolsalibaba-cloud-oss

Chrome dev tool error- Status in network tab is CORS ERROR while fetching image from Alibaba OSS


fetch(url).then((response) => {
        return response.blob();
    }).then(blob => {
        return URL.createObjectURL(blob);
    });

My url in fetch() actually a image url of different domain which is OSS_URL of Alibaba Cloud. How can i have full access over it.


Solution

  • you should config CORS on your Alibaba cloud. check their docs like here