Google Earth API を使用するパッケージ アプリを作成しようとしています。ただし、アプリの実行中に、次のようなエラーが表示されます。
Refused to load the script 'https://www.google.com/jsapi' 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.
そこで、マニフェストに次の行を追加しました
"content_security_policy": "script-src 'self' https://www.google.com/jsapi; object-src 'self'",
ただし、現在、クロムは不平を言い、次のエラーを表示します。
There were warnings when trying to install this extension:
'content_security_policy' is only allowed for extensions and legacy packaged apps, and this is a packaged app.