无法安装Chrome扩展程序 [英] Unable to install Chrome extension

查看:212
本文介绍了无法安装Chrome扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在内部Apache服务器上托管Chrome扩展程序,但每次尝试安装时,都会收到以下错误消息:

 应用程序,扩展和用户脚本不能从本网站添加。 

我已采取以下步骤来尝试解决问题:




  • 确保文件的内容类型为 application / x-chrome-extension

  • 编辑 / Applications / Google Chrome.app/Contents/Resources/com.google.Chrome.manifest/Contents/Resources/com.google.Chrome.manifest,如下所示:

    • ExtensionAllowedTypes 设置为扩展 li>
    • ExtensionInstallBlacklist 设置为 *

    • ExtensionInstallWhitelist 设置为 jigjkmgmgnpkibbhondidickedkcdjba

    • 设置 ExtensionInstallSources *:// * / *


>

我是否错过了一些明显的东西?

/ Library / Managed Preferences /< username> /com.google.Chrome.plist



您不必将 com.google.Chrome.manifest 作为基础。这是描述可用选项的文件。您的文件应该如下所示:

 <?xml version =1.0encoding =UTF-8?> 
<!DOCTYPE plist PUBLIC - // Apple // DTD PLIST 1.0 // ENhttp://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>扩展< / string>< / array>
< key> ExtensionInstallBlacklist< / key>
< array>< string> *< / string>< / array>
< key> ExtensionInstallWhitelist< / key>
< array>< string> jigjkmgmgnpkibbhondidickedkcdjba< / string>< / array>
< / dict>
< / plist>

请注意,支持的设置策略首选项的方式是通过OS X Workgroup Manager。


I'm hosting a Chrome extension on an internal Apache server, but every time I try to install it I get the following error:

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

I've taken the following steps to try and resolve the issue:

  • Made sure the file has the content type of application/x-chrome-extension
  • Edited the /Applications/Google Chrome.app/Contents/Resources/com.google.Chrome.manifest/Contents/Resources/com.google.Chrome.manifest as follows:
    • Set ExtensionAllowedTypes to extension
    • Set ExtensionInstallBlacklist to *
    • Set ExtensionInstallWhitelist to jigjkmgmgnpkibbhondidickedkcdjba
    • Set ExtensionInstallSources to *://*/*

Am I missing something obvious?

解决方案

The right place for the preferences file is /Library/Managed Preferences/<username>/com.google.Chrome.plist

You don't have to take com.google.Chrome.manifest as a base. That's a file describing the available options. Your file should look like this:

<?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>

Note that the supported way of setting policy preferences is via the OS X Workgroup Manager.

这篇关于无法安装Chrome扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆