Using Google Maps API from Chrome App

£可爱£侵袭症+ 提交于 2019-12-06 00:56:56

问题


I'm trying to use Google maps inside of a Chrome App. Whenever I try to load the javascript I get the error:
"Refused to load the script 'https://maps.googleapis.com/maps/api/js?key=Key&sensor=true' because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback."

I thought about trying to use a webview or a sandbox, but am having issues implementing either. The sandbox has an issue because I also am doing a http request to a service with no 'Access-Control-Allow-Origin' header is present.

来源:https://stackoverflow.com/questions/23601976/using-google-maps-api-from-chrome-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!