如何解决Google recaptcha invisible 有时仍然需要解决挑战
我在使用 google recaptcha 时遇到问题。 我的页面正在使用 ReactJS。我正在使用 react-google-recaptcha 在页面中实现 recaptcha。这是我的 google recaptcha 组件:
import * as React from 'react';
import ReCAPTCHA from 'react-google-recaptcha';
const SITE_KEY = process.env.RECAPTCHA_SITE_KEY;
type Props = {
asyncScriptOnLoad?: () => void;
size?: 'compact' | 'normal' | 'invisible';
theme?: 'light' | 'dark';
};
const GoogleRecaptcha = React.forwardRef<any,Props>(
({asyncScriptOnLoad,size = 'invisible',theme = 'light'},ref) => {
return (
<ReCAPTCHA
style={{display: 'inline-block',visibility: 'hidden'}}
theme={theme}
sitekey={SITE_KEY}
asyncScriptOnLoad={asyncScriptOnLoad}
ref={ref}
size={size}
/>
);
},);
export default GoogleRecaptcha;
它工作得很好,但有时,它需要解决验证码挑战。如下图
google recaptcha 有什么问题。我该如何修复它!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。