We have a custom PUBLIC community with a signup form. This community does not require login as the point is for the user to sign up. In this signup form, we have built a lightning component+vf page to handle google reCAPTCHA logic to prevent bot spam. We use an iframe within these components to display this reCAPTCHA widget ("I am not a robot!").
The problem however is that whenever not logged in and accessing this page (intended behavior), the reCAPTCHA logic doesn't work because the iframe where this reCAPTCHA logic is embedded within is attempting to bounce the user to the default login page since its an external URL.
My question: Is there anyway to either a) Override this behavior and DONT redirect to login or b) A better way to implement reCAPTCHA in this scenario and not have to deal with this?