mewebstudio / captcha

Captcha for Laravel 5/6/7/8/9/10/11
MIT License
2.46k stars 452 forks source link

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

Open mohitlandageneosoft opened 1 year ago

mohitlandageneosoft commented 1 year ago

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.

Vladimir1247 commented 11 months ago

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.