Next.js Discord

Discord Forum

reCAPCHA in Route Handlers

Unanswered
British Shorthair posted this in #help-forum
Open in Discord
British ShorthairOP
Hello everyone, I just want someone to provide me with a link or tell me by themselves on how could I verify a POST request with reCAPTCHA using Next 13 Route Handlers?

5 Replies

European sprat
maybe you can setup a page that interacts with a route handler and on the page you add the reCAPTCHA?
British ShorthairOP
@European sprat well it's a little bit more complicated, because I'm building a form submissions API, which is intended for use by other people too and I want to handle spamming with a reCAPTCHA and there is no guarantee that people that use that API will handle the CAPTCHA by themselves.
European sprat
Rate limit in other ways then
A route handler just deals with http verbs, not UI
British ShorthairOP
Ok