Why does Chrome keep displaying “Site cannot be installed: the page is not served from a secure origin” in the console?

前端 未结 2 689
执笔经年
执笔经年 2021-01-18 04:43

Whenever I look in Chrome\'s console, I see this error message:

Site cannot be installed: the page is not served from a secure origin

2条回答
  •  春和景丽
    2021-01-18 05:08

    2019-Dec update: this answer is outdated. Neither of the two flags mentioned in it are available in Chrome any more. Old answer below.


    This error is caused by sites served over HTTP if "Add to shelf" is enabled in chrome://flags.

    Solution: go to chrome://flags/#enable-app-banners (used to be chrome://flags/#enable-add-to-shelf) and change "Enabled" to "Default", then relaunch Chrome.

提交回复
热议问题