使用Chrome应用中的Google Maps API

时间:2014-05-12 05:59:15

标签: google-maps google-chrome google-chrome-app

我正在尝试在Chrome应用中使用Google地图。每当我尝试加载javascript时,我都会收到错误:
"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."

我考虑过尝试使用webview或沙箱,但是我也遇到了问题。沙箱有一个问题,因为我也正在对服务进行http请求,而不存在“Access-Control-Allow-Origin”标头。

0 个答案:

没有答案