gpt4 book ai didi

javascript - list : property 'start_url' ignored, 应与文档同源

转载 作者:太空宇宙 更新时间:2023-11-04 14:10:20 25 4
gpt4 key购买 nike

我只是在构建一个静态 HTML 页面,我想让它可以安装。

list .json

{
"name": "YYY",
"short_name": "YYY",
"icons": [
{
"src": "android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"start_url":"index.html"
}

index.html

<head>
<link rel="apple-touch-icon" sizes="180x180" href="https://xxx.png">
<link rel="icon" type="imageits-not-the-real-one/png" href="https://xxx.png"
sizes="32x32">
<link rel="icon" type="imageits-not-the-real-one/png" href="https://xxx.png"
sizes="16x16">
<link rel="manifest" href="https://my-manifest-its-not-the-real-one.json">
..

项目结构

enter image description here

错误

list :忽略属性“start_url”,应与文档同源。

最佳答案

聚会有点晚了,但我的网站将只接受启用 HTTPS 的完整 URL

我有这个: http://example.com/

但我不得不使用:https://example.com/

否则我得到了

Manifest: property 'start_url' ignored error, should be same origin as document.

关于javascript - list : property 'start_url' ignored, 应与文档同源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48240089/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com