mixpanel icon indicating copy to clipboard operation
mixpanel copied to clipboard

Support Content-Security-Policy nonce when outputting a script tag

Open shockie opened this issue 4 years ago • 0 comments

this Gem currently doesn't support a Content-Security-Policy based on nonces, as it outputs the script tag without the nonce which results in the browser rejecting to execute the mixpanel script.

This PR will gracefully check if the request has a nonce in the environment and attaches it to the script tag when it's present.

shockie avatar Jul 02 '21 07:07 shockie