Link
manifest
Links the page to a web app manifest, a JSON document that describes properties such as the app name, icons, display mode, scope, and start URL.
Code examples
Good example
<link rel="manifest" href="/app.webmanifest">Links to a same-origin web app manifest. A relative URL is valid here.
Avoid this example
<link rel="manifest">Has no href, so the browser cannot fetch a manifest.
Recommendations
- 01Serve valid JSONA syntax error or invalid member can stop some or all of the manifest from being applied. Check the parsed manifest in browser developer tools.
- 02Set scope deliberatelyKeep start_url within scope. Otherwise the user agent falls back to the document URL when it processes the manifest.
- 03Use crossorigin for credentialsIf a cross-origin manifest needs cookies or HTTP authentication, set crossorigin="use-credentials" and configure the server's CORS response.