Google reCaptcha blocked by CORS policy from LocalHost

Skip to first unread message

Jay Chuah

Nov 30, 2019, 11:35:01 PM11/30/19
I have implement Google reCaptchaV3 on my login page  
I would like to get the score by sending request to  
My code to sent post request like following  

        map(data => new RecaptchaResponse().deserialize(data)),
  catchError(() => throwError('No Score')),

However I get the error

    Access to XMLHttpRequest at '' from origin 'http://localhost:50000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I did try the following approach:  
1) Add 'localhost' on admin console  
2) Add on admin console  
3) Disable 'Verify the origin of reCAPTCHA solutions' option

However none of above were working.  
Any idea on how to test the reCaptcha in localhost?  
As it's working on Postman but not on localhost.
Reply all
Reply to author
0 new messages