And it still is (or should be).
I just put this HTML file (with my access token as the defaultAccessToken
) into a directory…
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.120/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.120/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<title>PhotoCalc-CesiumJs astrophotography planner</title>
</head>
<body style="background-color:#AAAAAA; color:white">
<div id="cesiumContainer" style="width: 1000px;"></center>
<script type="module">
Cesium.Ion.defaultAccessToken = "...";
const worldTerrain = await Cesium.createWorldTerrainAsync();
const viewer = new Cesium.Viewer('cesiumContainer', {
terrainProvider: worldTerrain,
navigationHelpButton: false, // Disabilita il pulsante di aiuto alla navigazione
fullscreenButton: false, // Disabilita il pulsante per la modalit� schermo intero
geocoder: false, // Disabilita il geocoder
homeButton: false, // Disabilita il pulsante di ritorno alla vista iniziale
sceneModePicker : false
});
console.log(Cesium);
viewer.scene.globe.enableLighting = true;
viewer.scene.primitives.add(await Cesium.createGooglePhotorealistic3DTileset());
</script>
</body>
</html>
and served this at localhost:
Do you perform any forms of build- or post-processing steps on that HTML?
(Is it possible to look at the console or network tab in order to narrow down where these “Not allowed to load local resource” errors are coming from exactly? )