Ionic failed to retrieve image from Firebase storage by retrieving URL

I use firebase storage to store the uploaded images from the admin system and i save the URL in the real time database when i retrieve the URLs of the images it works fine on localhost but when i build it gaves me that error:

Failed to load resource: the server responded with a status of 404 (Not Found)


when copy the url and paste in the browser it works fine while the image is broken in the images folder of the app

could you please help me how to fix it?

Thank you in advance