为什么Google Chrome无法检测到manifest.json

问题描述

你好,我想将我的网站设置为pwa。该网站位于django中,我将manifest.webmanifest放在127.0.0.1:8000/images/manifest.webmanifest(仅用于测试)中,现在firefox可以检测到它和google chrome不能。 这是我的manifest.webmanifest内容

{
    "name":"damirco","short_name":"damirco","display":"standalone","background_color":"rgb(11,11,211)","description":"damirco","dir":"rtl","orientation":"portrait-primary","icons":[
        {
            "src":"/images/pwa/512x512.png","type":"image/png","sizes":"512x512"
        },{
            "src":"/images/pwa/192x192.png","sizes":"192x192"
        }
    ],"start_url":"/","scope":"/","theme_color":"#3f51b5","prefer_related_applications": false
}

这是链接标记

<link rel="manifest" type="application/manifest+json" href="/images/manifest.webmanifest">

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)