I am using Resium, a framework made for integrating Cesium and React, and I am trying to add an imagerylayer to display an asset from ion. I have verified the access token is correct, but I am getting an error saying the CORS request was blocked. I have the following snippet of code in a ComponentDidMount method:
const imageryProvider = await (
IonImageryProvider.fromAssetId(3493410)
);
console.log(imageryProvider);
this.setState({ imageryProvider });
And then this tag in the returned html in the render method:
{this.state.imageryProvider && (
<ImageryLayer imageryProvider={this.state.imageryProvider} />
)}
The asset isn’t loading in as it the CORS request is getting blocked. It is a geotiff raster image.