Closed joerees closed 1 month ago
Maybe you need to use this: https://github.com/gtm-support/vue-gtm/issues/209#issuecomment-1732417673
Tried this already but makes no difference, nonce does not get applied correctly
Same here, nonce is not applied. Tried with both @gtm-support/vue-gtm
and @zadigetvoltaire/nuxt-gtm
.
This plugin does not apply the nonce attribute to the gtm script tag. when inspecting the script element in chrome I can see no nonce value added to the attributes list, however it is there as a property.
This is the following error breaking our CSP.
The source list for the Content Security Policy directive 'script-src' contains an invalid source: ''nonce-{{nonce}}''. It will be ignored.
Here is my implementation, is there a work around or fix ?