#Nuxt Manifest in header does not load

11 messages · Page 1 of 1 (latest)

north hawk
#

Hi everybody,
I'm trying to add a manifest file to the header but it keeps being ignored in dev or production even though the header shows the link:

link: [
{
rel: 'manifest',
src: 'manifest.json',
crossorigin: 'use-credentials',
}
],

Hosted manifest.json file in the public folder
Any idea on how to include a link to the manifest in the header ?

north hawk
#

-_- oh god

#

staring for to long at an editor, thanks ! 😄

vapid skiff
#

beware, it needs to be served with application/manifest+json content type

north hawk
#

thanks, just did a test and loads perfect. ✌️

fallen steppe
vapid skiff
#

it is just an attribute on the script tag so you can add what you want...

#

the browser may or may not complain

north hawk
#

that is correct you can add any type of attribute

viral cobalt