Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I was just building a static HTML page & I wanted to make it installable.

manifest.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">
   ..

Project structure

enter image description here

Error

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

like image 300
Melchia Avatar asked Jan 13 '18 12:01

Melchia


1 Answers

Bit late to the party but my site will ONLY accept the full URL with HTTPS enabled

I had this: http://example.com/

but I had to use: https://example.com/

otherwise I was getting the

Manifest: property 'start_url' ignored error, should be same origin as document.
like image 187
brandito Avatar answered Nov 14 '22 22:11

brandito