Getting 401 error when trying to load from remote server

I have an web application that serves tileset URLs to my Cesium.js client.

The tilesets may come from a remote server or from my Cesium account’s asset storare. When the tileset comes from my Cesium account, the web application obtains the URL by using Cesium ION.


I want my Cesium.js client to load tileset using its URL, and not its asset ID.

Is this possible?

The following does not work (I get a 401 error):

let tileset = viewer.scene.primitives.add(
      new Cesium.Cesium3DTileset({ url: url })
) ;