我正在尝试在 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."
我考虑过尝试使用网络视图或沙箱,但在实现任一方面都遇到问题。沙箱有一个问题,因为我也在向不存在“Access-Control-Allow-Origin”标头的服务发出 http 请求。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)