VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

Recaptcha doesn't show in firefox #162

Open AmarieEA opened 8 years ago

AmarieEA commented 8 years ago

Recaptcha doesn't show in firefox when it works perfectly chrome. My html:

        <md-dialog-content>            
                <div vc-recaptcha theme="'light'" key="vm.model.key" ></div>
        </md-dialog-content>

I see that the problem in the method getRecaptcha (angular-recaptcha.js) where recaptcha == undefined:

        function getRecaptcha() {
            if (!!recaptcha) {     //there recaptcha == undefined
                return $q.when(recaptcha);
            }

            return promise;
        }

firefox version: 49.0.1

iambrosi commented 8 years ago

Can you try loading this url and see if the reCaptcha is shown? I personally can see it working on Firefox 49.0.1.

image

This might be an issue with your implementation.

AmarieEA commented 8 years ago

no, recaptcha doesn't show in firefox

xingped commented 8 years ago

@iambrosi I am also having a problem with implementation where the recaptcha isn't showing up and am on Firefox v47 (though not sure if it's related).

This is all I've put in my HTML, yet nothing shows up:

<div vc-recaptcha key="'...'" ng-model="formData.recaptchaResponse"></div>

I've put the directive file and the google api script tag into my header and loaded the directive into my app. No errors. The directive div doesn't get filled with anything and it doesn't look like any network calls are made to google. Thoughts?

iambrosi commented 8 years ago

@AmarieEA Here you have another reCaptcha demo. Can you see it working on your Firefox?

iambrosi commented 8 years ago

@xingped Does this happens only Firefox? Do you see any errors in the console? Make sure you've followed the steps from the usage guide.

xingped commented 8 years ago

Your demo page works fine, just not my page. And when I use just the plain html from Google it works fine. The only issue I can possibly see is your note that it must be used on a "real domain" and I'm on localhost, but localhost is perfectly acceptable for recaptcha.

On Oct 19, 2016 7:23 AM, "Ismael Ambrosi" notifications@github.com wrote:

@xingped https://github.com/xingped Does this happens only Firefox? Do you see any errors in the console? Make sure you've followed the steps from the usage guide https://github.com/VividCortex/angular-recaptcha#usage.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/VividCortex/angular-recaptcha/issues/162#issuecomment-254828106, or mute the thread https://github.com/notifications/unsubscribe-auth/AAL4Zylyu3tdua4gRXGAG5uajq86C2cWks5q1ifngaJpZM4KYn1K .

TheSharpieOne commented 8 years ago

Some of your code would help diagnose the issue as the issue [to put it bluntly] is most likely with your code and not this library since it is working fine for myself and others.

xingped commented 8 years ago

groan I had a small typo in the src for the google recaptcha script tag. Sorry for the bother.

mallikvarma commented 7 years ago

I have this problem in my application and angular-captcha never shows up firefox and IE9. I just installed firefax 50.0 and tried accessing http://vividcortex.github.io/angular-recaptcha/ and your demo doesn't either.