我在一个内部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设置为extensionExtensionInstallBlacklist设置为*ExtensionInstallWhitelist设置为jigjkmgmgnpkibbhondidickedkcdjbaExtensionInstallSources设置为*://*/*
我漏掉了什么明显的东西吗?
发布于 2013-11-15 11:32:50
首选项文件的正确位置是/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工作组管理器。
https://stackoverflow.com/questions/19984661
复制相似问题