hotjar-js icon indicating copy to clipboard operation
hotjar-js copied to clipboard

Add nonce to appended script

Open nevenduranec opened this issue 1 year ago • 0 comments

The nonce is not added to the appended script after the inital inline script is added to DOM.

Probably relates to https://github.com/hotjar/hotjar-js/issues/26

Also every other script that gets inserted or inlined through the main script file https://static.hotjar.com/c/hotjar-xxx.js?sv=6 needs to have the nonce attribute set, otherwise the CSP will fail.

nevenduranec avatar Jan 26 '24 19:01 nevenduranec