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

前端 未结 2 676
执笔经年
执笔经年 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:04

    In later versions of Chrome, this can occur as a result of a flag relating to banner content serving. These flags change all the time, but here's how it looks in Chrome 78:

    The flag is bypass-app-banner-engagement-checks, and it's pretty far down the screen (unless it's enabled, in which case it's near the top of the screen).

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题