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