How can I test hCaptcha on localhost?
When using the key, I get a CORS error, and for choosing sites for the key, it specifically states ... localhost will not work
How can I test hCaptcha on localhost?
When using the key, I get a CORS error, and for choosing sites for the key, it specifically states ... localhost will not work
There are test keys you should use for testing, see https://docs.hcaptcha.com/#integration-testing-test-keys
Referenced Below:
PS: I confirmed this with the hCaptcha team.
PSS: A different work around would be use change your
hosts
file to pointyour-website.com
to localhost to do testing.