简体   繁体   中英

Incompatible Recaptcha V2 with IE

I have tried adding meta tag to the header:

But it didn't work.

I tried this option, still didn't work infact there is no google.com present inside compatible view.

Could anyone help me out?

<!DOCTYPE html> <html lang="en"> <head> <title>How to Integrate Google “No CAPTCHA reCAPTCHA” on Your Website</title> <script src='google.com/recaptcha/api.js'></script> </head> <body> <form action="" method="post"> <label for="name">Name:</label> <input name="name" required><br /> <label for="email">Email:</label> <input name="email" type="email" required><br /> <div class="g-recaptcha" data-sitekey="###"></div> <input type="submit" value="Submit" /> </form>

You should include the necessary JavaScript resource like this:

<script src='https://www.google.com/recaptcha/api.js'></script>

Besides, set the right site key in the data-sitekey attribute.

The result is like this in IE:

在此处输入图像描述

If it still doesn't work in IE 11, you could use F12 dev tools to check if there's any error in console.

Actually it was loading loading first time in IE. So, I tried with making url different everytime by appending current datetime.

" https://www.google.com/recaptcha/api.js?render= " + EncodeUrl(SiteKey) + "&time="+CurrTime()

It started working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM