vite-plugin-pwa icon indicating copy to clipboard operation
vite-plugin-pwa copied to clipboard

CSP errors when using nonce

Open joerees opened this issue 1 year ago • 3 comments

I have come across an issue when using nuxt-security module and enabling nonce in CSP settings. I have done a number of tests and the errors go away when I remove this module.

Has anyone else come across this and have a solution ?

joerees avatar Feb 28 '24 12:02 joerees

Try adding 'manifest-src': ['\'self\''], to your contentSecurityPolicy entry

userquin avatar Feb 28 '24 12:02 userquin

Thanks @userquin but I already tried that

joerees avatar Feb 28 '24 13:02 joerees

@joerees if you provide a minimal reproduction I'll check it later

userquin avatar Feb 28 '24 13:02 userquin