-
Integrating third party consent tool : https://shopify.dev/docs/storefronts/headless/hydrogen/analytics/consent-3p#step-4-sync-your-third-party-settings-with-shopify, I have to use the util Any idea ? I would like to avoid to expand my csp by hardcoding origin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For now, can you try with something like Otherwise, if you are able to use the @blittle @wizardlyhel Should we wrap |
Beta Was this translation helpful? Give feedback.
For now, can you try with something like
useLoadScript('...', {attributes: { nonce: useNonce() } })
? TheuseNonce()
hook should give you the same nonce.Otherwise, if you are able to use the
<Script>
component instead ofuseLoadScript
, it should inject the nonce automatically.@blittle @wizardlyhel Should we wrap
useLoadScript
from Hydrogen-React and inject the nonce automatically in Hydrogen? I see this hook is used for analytics/customer-privacy and it's not injecting nonce at the moment.