turnstile icon indicating copy to clipboard operation
turnstile copied to clipboard

How to test on localhost

Open IbrahimIjai opened this issue 9 months ago • 2 comments

📚 What are you trying to do?

How can I test in development? couldn't add localhost:3000 to list of hostnames on cloudfare.

Image

🔍 What have you tried?

No response

ℹ️ Additional context

No response

IbrahimIjai avatar Mar 25 '25 01:03 IbrahimIjai

Hello, to use it in development, you should add just localhost without the 3000 port and it will work.

Make sure to wait a bit for it to detect the hostname or just clear your browser cache if it still says invalid domain

Image

Yizack avatar Mar 26 '25 06:03 Yizack

https://developers.cloudflare.com/turnstile/troubleshooting/testing/ you can use testing keys instead of adding localhost domains

aberrios1 avatar Sep 04 '25 12:09 aberrios1