mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 01:00:04 -04:00
e3d3b4d759
1. 新增友链:MC_Kero的 blog 2. docs(pages): captcha
1.2 KiB
1.2 KiB
title, published, tags, description, image, category
| title | published | tags | description | image | category | ||
|---|---|---|---|---|---|---|---|
| hCaptcha “强兼” reCaptcha? | 2025-08-13 |
|
一次出3个 hCaptcha?瞧瞧你干的好事! | ../assets/images/hCaptcha-localhost-errkey.png | 记录 |
强兼 Google reCaptcha 失败?
如你所见,这是 hCaptcha 无法验证的样子。当然,如果你在一个页面同时放上 Google reCaptcha(我的是 v2)和 hCaptcha,那么聪明的 hCaptcha 会 开始兼容它 。

posts/captcha/
而开启后却是这样的:

没错,出现了 3 个 hCaptcha 框。而且出现的位置就在 reCaptcha 的位置。哇,强兼失败?
byd 太气人了这。
解决方法
将 hCaptcha 的脚本请求 URL 加上 ?recaptchacompat=off 即可:
<script
src="https://hcaptcha.com/1/api.js?recaptchacompat=off" async defer>
</script>
