This is the code I am using to convert the image URL
const imageData = await fetch(data.coverURL);
const imageArrayBuffer = await imageData.arrayBuffer();
const imageUint8Array = new Uint8Array(imageArrayBuffer);
// Create a new image in the Figma document
const imageHash = figma.createImage(imageUint8Array).hash;
console.log('Image hash:', imageHash);
and here is the URL
https://is1-ssl.mzstatic.com/image/thumb/Publication6/v4/60/29/a3/6029a31a-bf59-43fb-3a29-23ff12d8631d/Cover_BellsBigMove.jpg/800x800bb.jpg
Getting this error
VM4198:6 Refused to connect to 'https://cors-anywhere.herokuapp.com/https://is1-ssl.mzstatic.com/image/thum…/6d6c0fd5-0d8b-df53-5a2c-1d349e0ed9b3/617513652833_cover.jpg/500x500bb.jpg' because it violates the following Content Security Policy directive: "default-src data: blob:". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.