captcha icon indicating copy to clipboard operation
captcha copied to clipboard

Getting status code 404, not found on one of UAT server.

Open mohitlandageneosoft opened this issue 2 years ago • 1 comments

Hello , I have installed the mews/captcha package on local for one of my laravel project having version 5.5. It works fine on local, I have uploaded vendor folder along with app.php, captcha.php configuration files on UAT server as we can not install composer on server. I am getting status code 404, not found from captcha url. Route is exists and 404 is returned by the captcha package. Its working fine on same server in another project.

mohitlandageneosoft avatar Jun 14 '23 05:06 mohitlandageneosoft

Hi! Check the 'disable' key in config\captcha.php and CAPTCHA_DISABLE in .env. Especially the first one - instead of the normal 'disable' => env('CAPTCHA_DISABLE', false), the default is 'disable' => env('CAPTCHA_DISABLE', !str_contains(env('APP_ENV', 'local'), 'prod')) now.

Vladimir1247 avatar Dec 08 '23 11:12 Vladimir1247