Chrome 如果没有 www,扩展内联安装将无法运行

Chrome extension inline installation not working if no www

我的 Chrome 扩展内联安装有问题。

它在 www.feedart.co 工作,但当我加载 feedart.co 时它不工作。

知道如何解决这个问题吗?

根据 Chrome 网上商店 documentation:

For security reasons, inline installations can only be initiated by a page on a site that is verified (via Webmaster Tools) as being associated with that item in the Chrome Web Store. Note that if you verify ownership for a domain (for example, http://example.com) you can initiate inline installation from any subdomain or page (for example, http://app.example.com or http://example.com/page.html).

因此,您应该验证顶级域 (feedart.co) 并将其设置为网上商店项目的关联网站。然后它将在该域和 www. 子域上工作。