I have implemented the reCAPTCHA solution (latest version), into my ASP.NET web project. It works fine and dandy in my local environment, but on our SSL encrypted server I receive the warning message “Do you want to view only the webpage content that was delivered securely? This webpage contains content that will not be delivered using a secure HTTPS connection, which could compromise the security of the entire webpage.” This only occurs in Internet Explorer.
I’ve found, on these forums and others to change the deprecated server to the new of googles (old: https://api-secure.recaptcha.net to new: https://www.google.com/recaptcha/api), but I am not directly referencing the javascript files, just using the .net library.
Any help would be greatly appreciated!
From browsing the control’s source, the control has a property called
OverrideSecureModethat, when set totrue, always causes the control to render via HTTPS.The MVC Helper, on the other hand, doesn’t seem to allow setting that property. It seems to be using
Context.Request.IsSecureConnectionto determine which hostname to use; discovering why that value is wrong for you is another way to attack the problem.