You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trusted Types is a Content Security Policy feature that allows web application owners to guard against insecure usage of dangerous DOM APIs and prevent Cross-Site Scripting vulnerabilities. The default version of the reCAPTCHA library is not compatible with Trusted Types, but can be made compatible by adding &trustedtypes=true as a query parameter when loading the library.
Currently applications using ng-recaptcha cannot adopt Trusted Types because it doesn't seem possible to add that query parameter. To fix this I propose either always setting the parameter (there shouldn't be any downsides) or making it configurable as part of the ng-recaptcha interface.
I'd be happy to send a PR implementing this.
The text was updated successfully, but these errors were encountered:
Summary
I'm submitting a:
Description
Trusted Types is a Content Security Policy feature that allows web application owners to guard against insecure usage of dangerous DOM APIs and prevent Cross-Site Scripting vulnerabilities. The default version of the reCAPTCHA library is not compatible with Trusted Types, but can be made compatible by adding
&trustedtypes=true
as a query parameter when loading the library.Currently applications using ng-recaptcha cannot adopt Trusted Types because it doesn't seem possible to add that query parameter. To fix this I propose either always setting the parameter (there shouldn't be any downsides) or making it configurable as part of the ng-recaptcha interface.
I'd be happy to send a PR implementing this.
The text was updated successfully, but these errors were encountered: