chrome.webstore.install(); Not working on verified site

自古美人都是妖i 提交于 2019-12-06 13:01:03

问题


When I attempt to use the chrome.webstore.install(); function on my verified website for my chrome extension, it returns this error

Installs can only be initiated by the Chrome Web Store item's verified site

Even when the website is the item's verified site.

I do have the link to the item in the head tag:

<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/oogdogaijchgbmakknkjcmimfgdpodil">

Any help would be appreciated.


回答1:


if you verify ownership for a domain (for example, http://example.com) you can only initiate inline installation from any subdomain or page (for example, http://app.example.com or http://example.com/page.html). Check this validation. Having picbox.us is domain verified, you need to make a default page say picbox.us\index.html and post all your content there to get chrome inline installation running.



来源:https://stackoverflow.com/questions/13521759/chrome-webstore-install-not-working-on-verified-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!