Yeah just to add on to Hannah’s message, the 3d-tiles-samples repo is only hosting the data. You need to run a Cesium app that points to the http://localhost:8003 url (like in the sample code provided in the 3d-tiles-samples github page).
Despite testing several different values for the --cors flag including --cors=http://localhost:8080/, --cors , --cors='*' , and --cors=authorization, my Cesium app on port 8080 keeps returning a CORS error.
You mentioned that you wanted to test “your app” - what kind of application is this? It seems like it is using wrong URLs for the requests. At least, from looking at the URL in the error message:
https://api.cesium.com/v1/assets/http:/localhost:8003/tileset.json
^ ^
| |
Not sure where this comes from The URL for your local tileset starts here
Hi Marco, Thanks very much for this and apologies. It is a standalone Javascript app. The issue was staring me in the face the whole time. I’d been adapting existing code and had mistakenly placed the local url within a call to Cesium Ion. Calling the tileset directly as in the example resolved the issue. For anyone who comes here with problems I also suggest setting your browser to disable the browser cache during development. This might help stop you going down the wrong rabbit hole.