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

Melchia picture Melchia · Jan 13, 2018 · Viewed 11k times · Source

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.

Answer

brandito picture brandito · Apr 24, 2018

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.