Using Firebase storage URL in ImportMesh returns a 403 error

I am using Firebase storage to store my babylon assets and trying to download from the asset URL, As per the Babylon’s external assets documentation, the dropbox works fine, but when i use the firebase storage url, I am getting either 403 error or a COR policy error (Trying multiple methods returns either of these two errors). These are the following methods i tried,

  1. ImportMesh("", firebase url, assetname, function)
  2. ImportMesh("", “”, firebase url, function)
  3. ImportMesh("", firebase url, firebase url, function)

Solved the problem, The Solution was to remove the line “if request.auth != null;” from the firebase storage rules in-order to make the access public and CORS policy error seems like its a firebase bug that got fixed automatically.

3 Likes