-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cesium doesn't work over the file:// protocol #5326
Comments
file://
protocol
Its about cross origin resource sharing. You can disable security in your browser. And you are right. It is not graceful but most of libraries do same thing. file:// protocol is out of scope for web projects. |
You can load other offline resources such as in #4773 |
Issue #4773 is about loading Cesium over HTTP on a disconnected network (for example, giving a presentation at a conference where the WiFi is down). You still need to run Cesium does not support operating over the By default, browsers don't support XHR over the |
Just to clarify, Cesium absolutely works with |
Hello, I'm using WebView with Qt and file:// protocols is not accepted... How can I use it? |
In the above minimal example, based on the KML example page, several coordinates, loaded as KML, are plotted with labels on the globe.
Everything works great when the example is loaded through the
http://
orhttps://
protocols. However, if you try to view the example locally by opening the document in chrome (ie loading it via thefile://
protocol), the viewer does not render or fly to the added entities.My guess is that this might be caused by XHR failing to access URLs specified in styles or
xmlns
s. In any case, it might be nice to fail a bit more gracefully; at least print out a warning if the library is loaded via thefile://
protocol.The text was updated successfully, but these errors were encountered: