Questions tagged [react-google-recaptcha]
74 questions
0
votes
1 answer
Google reCaptcha widget cut off in Chrome
I'm trying to add a reCaptcha validation using react-google-recaptcha. Works fine but the widget is visually cut off in Chrome and I'm not sure how to fix it. Firefox renders the widget correctly.
I tried messing with the style (width, height,…

user1769106
- 308
- 3
- 8
0
votes
1 answer
I want to get current url in settings.py file in django
I want to set an if condition in settings.py in my django app, to check the url and apply correct GOOGLE_RECAPTCHA_SECRET_KEY for the site. because of difference in local host and web server domin.
I used requests._current_scheme_host but get an…

Seyed Amir Mousavian
- 75
- 1
- 11
0
votes
0 answers
Is the usage of reCAPTCHA v3 with React ensuring that bots will not be able to load "not-yet-rendered" content?
I am not sure if this is a react-specific question, a general JavaScript related question or just a basic functionality question regarding websites and the loading of its sources (depending if one uses a browser or any other program to fetch the…

maximotus
- 21
- 1
- 5
0
votes
3 answers
Google Cloud - No secret key for reCAPTCHA Enterprise
I am trying to create a reCAPTCHA secret key and I already enabled the reCAPTCHA Enterprise API and created a key.
It created the site key, but I do not see a secret key.

KKaotix
- 19
- 2
0
votes
1 answer
Implementing google-recaptcha v3 in react without a backend
I'm a frontend developer trying to create a test case of adding google-recaptcha-v3 in my react app.
I'd appreciate response to how i can by-pass the cors error when I make a post request to verify the user's token.
//imports
...
const…

dev_integral
- 104
- 7
0
votes
1 answer
"Uncaught (in promise): null" when lifting up the value of reCAPTCHA
I'm trying to lift up the value of the reCAPTCHA (with react-google-recaptcha) once the user clicks it. I can easily get the value but I can't send it to the parent component. It throws:
Uncaught (in promise): null
const RecaptchaInput = ({ name,…

Ferran Buireu
- 28,630
- 6
- 39
- 67
0
votes
0 answers
react-google-recaptcha re-rendering when setstate
I am very new to react/hooks and struggling hard to get Google recaptcha working properly.
This is how my app.js looks like:
import ConfirmationPage from './Pages/ConfirmationPage';
function App() {
const [email, setEmail] = React.useState('');
…

A J
- 53
- 1
- 11
0
votes
0 answers
Google Recaptcha throwing System.Web.HttpRuntime.WebObjectActivator error
I am trying to use Google Recaptcha on on my web pages. I keep getting an error saying
GoogleReCaptcha.GoogleReCaptcha)(System.Web.HttpRuntime.WebObjectActivator.GetService(typeof(GoogleReCaptcha.GoogleReCaptcha))));
Below is the screen…

Anjali
- 2,540
- 7
- 37
- 77
0
votes
1 answer
Google ReCaptcha: react-google-recaptcha not verifying correctly
I have the following React component for a contact form:
import React from 'react'
import ReCAPTCHA from "react-google-recaptcha";
import {Container, Row, Col, Form, Button } from 'react-bootstrap'
import '../styles/contact.css'
class Contact…

Philipp Laurim
- 45
- 1
- 6
0
votes
2 answers
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?
How to…

lovish goel
- 21
- 1
0
votes
1 answer
Reactjs-Google ReCaptcha v3 onVerify method does not trigger for every login click
import React from "react";
import {GoogleReCaptchaProvider, GoogleReCaptcha } from "react-google-recaptcha-v3";
class Login extend React.Component {
verifyCallback = (response) => {
// API call to verify the token
}
render() {
…

Sneh
- 413
- 1
- 5
- 18
0
votes
1 answer
How do I make code wait for ReCaptcha to render
I am trying to edit an attribute of an element created by reCaptcha. But to do so, I need to catch the iframe, that is being created. The problem is, when I use useEffect (Instead of ComponentDidMount/Update. The code runs too early. How can I make…

Alex Ironside
- 4,658
- 11
- 59
- 119
-1
votes
1 answer
Override the styles of Google recaptcha
I have an HTML/Bootstrap page page where i am using google recaptcha V2.
I have a style class css file which is working(i am having other styles working through this css).
I am trying to override the background color of "I am not Robot" so i added…

user3657868
- 59
- 1
- 9
-2
votes
1 answer
Recaptcha PostAsync throwing System.Net.WebException: The underlying connection was closed
Tried implementing a google Recaptcha , Locally it is working very fine . But when deployed to other server (Through Octopus) it throws the exception. Unable to find the cause. Happens on PostAsync call .Please needed help.
using (HttpClient…

chaithra manoj
- 63
- 3
- 11