I have a flutter web app that I am trying to access images stored in firebase storage. When I try to get to the image I get this error:
Access to XMLHttpRequest at 'link-adress' from origin 'https://myDomain.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
After that I edited my code to add:
allow origin: if ["https://myDomain.app/*"]; allow method: if ["GET"]; allow headers: if[ "Authorization", "Content-Type", "x-firebase-storage-token", "x-firebase-storage-download-token" ]; What is super odd is that the images download and work if I visit my site on Chrome or Firefox from my mobile phone, but if I try from desktop Chrome, Safari etc. I get the cors error still.