Cesium:An erron occurred while rendering. Rendering has stopped. SecurityError: Failed to construct

2021年09月15日 阅读数:7
这篇文章主要向大家介绍Cesium:An erron occurred while rendering. Rendering has stopped. SecurityError: Failed to construct ,主要内容包括基础应用、实用技巧、原理机制等方面,希望对大家有所帮助。

解决方法一:https://blog.csdn.net/u014589116/article/details/109324430node

部署一个nginx或者nodejs服务器nginx

Access to XMLHttpRequest at from origin 'null' has been blocked by CORS policy:cross origin requests are only supported for protocol schemes:http,data,chrome-extension,edge,https,chrome-untrusted.web

解决方法二:把打包后的项目放到tomcat的webapps下chrome