nuxt-community/recaptcha-module

Nuxt 2 app captcha disappears on page reload

Calamity-Reaper opened this issue · 1 comments

The Nuxt 2 application uses captcha v2. When you build it or run it in dev mode on a local machine, the captcha works great even when the page is reloaded. But on the production server, when the page is reloaded, the captcha disappears and can only appear if you reload and clear the cache after some time (an important note - after a while, if you reload instantly or after a short period of time, it will not appear). In the network tab I can see that captcha scripts are not loading
photo_2024-04-02_19-13-00
photo_2024-04-02_19-12-56

I found the problem. Captcha does not work well with the v-if directive, so try to avoid it or use v-show instead