Así que cargué una imagen en mi base de fuego y estoy tratando de recuperarla usando la búsqueda de javascript.
Probé la solución aquí pero produce un error CORS.
También intenté ejecutar python3 -m http.server dentro del directorio que contiene el archivo html pero produce un error similar.
Aquí está mi código:
índice.html
<!DOCTYPE html> <html> <body> <div id="myImg"></div> <script src="script.js"></script> </body> </html>guión.js
fetch("https://firebasestorage.googleapis.com/v0/b/mvp1-354320.appspot.com/o/Parts%2F7.jpg?alt=media&token=c2049b23-b406-407c-b39e-86da7fcce764") .then(res => res.blob()) // Gets the response and returns it as a blob .then(blob => { // Here's where you get access to the blob // And you can use it for whatever you want // Like calling ref().put(blob) // Here, I use it to make an image appear on the page let objectURL = URL.createObjectURL(blob); let myImage = new Image(); myImage.src = objectURL; document.getElementById('myImg').appendChild(myImage) }); Aquí está mi mensaje de error sin ejecutar un servidor python 