https://google.com/recaptcha/api.js figures out the CSP nonce to use by checking a nonce attribute: d.querySelector('script[nonce]'). That does not work because this lib sets the nonce using script.nonce = nonce. This patch sets the nonce attribute instead, making ng-recatpcha's RECAPTCHA_NONCE more useful.
https://google.com/recaptcha/api.js
figures out the CSP nonce to use by checking a nonce attribute:d.querySelector('script[nonce]')
. That does not work because this lib sets the nonce usingscript.nonce = nonce
. This patch sets the nonce attribute instead, makingng-recatpcha
'sRECAPTCHA_NONCE
more useful.