ReCapture resulting in mixed content error for HTTP and HTTPS
Added google Recapture to a contact form on Umbraco and have put the public and privtate keys into the UmbracoForms.config file but when i load the web page the error:
Mixed Content: The page at 'https://-' was loaded over HTTPS, but requested an insecure script 'http://www.google.com/recaptcha/api/challenge?k=6LeqoNsSAAAAAOQrdqDFE5KAzDESxxxODLpOeJjh&hl=&'. This request has been blocked; the content must be served over HTTPS.
How do i fix this in the Umbraco admin console or the source code?
I've never encountered that before but give this file a look, the script is called from there: Views/Partials/Forms/Fieldtypes/FieldType.Recaptcha2.cshtml
Hmm, for me that file contains the following (among other things), just checked another site also. They are both v7 sites...What version of Umbraco are you using?
ReCapture resulting in mixed content error for HTTP and HTTPS
Added google Recapture to a contact form on Umbraco and have put the public and privtate keys into the UmbracoForms.config file but when i load the web page the error:
Mixed Content: The page at 'https://-' was loaded over HTTPS, but requested an insecure script 'http://www.google.com/recaptcha/api/challenge?k=6LeqoNsSAAAAAOQrdqDFE5KAzDESxxxODLpOeJjh&hl=&'. This request has been blocked; the content must be served over HTTPS.
How do i fix this in the Umbraco admin console or the source code?
I've never encountered that before but give this file a look, the script is called from there: Views/Partials/Forms/Fieldtypes/FieldType.Recaptcha2.cshtml
This file contains the following:
Any idea where the http call to google might come from?
Hmm, for me that file contains the following (among other things), just checked another site also. They are both v7 sites...What version of Umbraco are you using?
Maybe look in the theme folder at Form.cshtml, Script.cshtml or Render.cshtml also.
Hi,
you should always have SSL enabled! This would also fix the issue. Anyway, for testing purposes you could try following (untested).
for Fieldtype.Recaptcha:
for Fieldtype.Recaptcha2:
~ Jonathan
is working on a reply...