Recaptcha.create() doesn't work with SSL on IIS hosted site

303 views
Skip to first unread message

Abhishek Sethi

unread,
Mar 5, 2014, 11:14:58 PM3/5/14
to reca...@googlegroups.com
Hi,

My recaptcha is not working when i attach an SSL certificate to my site hosted on IIS 7. The following is the code i use. It works perfectly fine when i remove the ssl certificate. What could be the reason? Need urgent help!

<div class="form_input_captcha">
<div id="sys-captcha-13940763381074331648"></div>
        <script>
                $(document).ready(function () {
                    
            Recaptcha.create('6LeOR-8SAAAAAD4BSVxZT7dKC8pUuWGnVSQS1kxE', 'sys-captcha-13940763381074331648', {
                lang: 'en',
                theme: 'white'
            });
        
                });
        </script>
        <input type="hidden" name="Captcha">
</div>

Thanks a lot!

Jay Ligda

unread,
Mar 7, 2014, 3:02:12 PM3/7/14
to reca...@googlegroups.com
Abhishek, I was having the same problem, but didn't realize it until I read your post.  I just knew it was not showing up sometimes, but now that I realized it was just when on the secure server, here's what I did to fix it.  In the recaptchalib.php file I just changed all calls to a non secure server (http://) to a secure server (https://).  It works fine now.
Reply all
Reply to author
Forward
0 new messages