[Vuejs]-NuxtJS and Vue2 Can I write server side code for Recaptcha?

0đź‘Ť

Technically it might be possible to validate the Recapthca key on the frontend, but since you need to use your private key to do so, your private key would be exposed.

Also it shouldn’t be the frontend’s decision whether or not to submit the form based on a Recaptcha. The frontend should submit the form – and the backend should decide how to handle the submission based on the Recaptcha result. Otherwise bots would still be able to hit the endpoint.

Leave a comment