我在内部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
设为*://*/*
我错过了一些明显的东西吗?
答案 0 :(得分: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。