Skip to content
Snippets Groups Projects
Commit 49c5f7cb authored by David Baker's avatar David Baker
Browse files

Use same protocol as client was loaded over for recaptcha to prevent JS origin errors.

parent 1b82d92f
Branches
Tags
No related merge requests found
......@@ -90,7 +90,7 @@ module.exports = {
if (this.refs.recaptchaContainer) {
var scriptTag = document.createElement('script');
window.mx_on_recaptcha_loaded = this.onCaptchaLoaded;
scriptTag.setAttribute('src', "https://www.google.com/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit");
scriptTag.setAttribute('src', global.location.protocol+"//www.google.com/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit");
this.refs.recaptchaContainer.getDOMNode().appendChild(scriptTag);
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment