0

内部 Apache サーバーで Chrome 拡張機能をホストしていますが、インストールしようとするたびに次のエラーが表示されます。

Apps, extensions, and user scripts cannot be added from this website.

問題を解決するために、次の手順を実行しました。

  • ファイルのコンテンツ タイプがapplication/x-chrome-extension
  • /Applications/Google Chrome.app/Contents/Resources/com.google.Chrome.manifest/Contents/Resources/com.google.Chrome.manifestを次 のように編集しました。
    • ExtensionAllowedTypesに 設定extension
    • ExtensionInstallBlacklistに設定*
    • ExtensionInstallWhitelistに設定jigjkmgmgnpkibbhondidickedkcdjba
    • ExtensionInstallSourcesに設定*://*/*

明らかな何かが欠けていますか?

4

1 に答える 1

2

設定ファイルの正しい場所は/Library/Managed Preferences/<username>/com.google.Chrome.plist

ベースにする必要はありませんcom.google.Chrome.manifest。これは、利用可能なオプションを説明するファイルです。ファイルは次のようになります。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>ExtensionInstallSources</key>
    <array><string>*://*/*</string></array>
    <key>ExtensionAllowedTypes</key>
    <array><string>extension</string></array>
    <key>ExtensionInstallBlacklist</key>
    <array><string>*</string></array>
    <key>ExtensionInstallWhitelist</key>
    <array><string>jigjkmgmgnpkibbhondidickedkcdjba</string></array>
  </dict>
</plist>

ポリシー設定のサポートされている方法は、OS X Workgroup Manager を使用することです。

于 2013-11-15T11:32:50.453 に答える