无法安装站点:该页面不是从安全来源提供的

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

我已经创建了 manifest.json 网站,以便能够将 Web 应用程序图标保存在桌面上。

我的开发者网站是通过 http - 当我从应用程序选项卡点击添加到主屏幕时它不起作用。

我收到控制台错误:

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

相同的代码可在 https 上运行。

我怎样才能简单地在 http

中绕过这个问题

注意:我在 chrome 浏览器中执行了以下步骤,但没有解决我的问题。

Whosebug previously Question

任何帮助将不胜感激。

问题是服务人员只会在安全源上注册和安装。所以遵循以下步骤:

1) 转到程序文件中的 chrome.exe 路径在桌面上创建 chrome 的快捷方式

2) 右键单击​​快捷方式 - 转到属性 - 使用以下更改更新目标 "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --unsafely-treat-insecure-origin-as-secure=http://wzy.xyz.com,http://x.xyz.com --user-data-dir=/anydirectory/

注意:请确保您的 google chrome 可执行文件存在于上述位置。

另外这只是在本地环境下测试。

chrome://flags/#unsafely-treat-insecure-origin-as-secure 启用并添加网站来源