mewebstudio / captcha

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

Captcha Broken on dynamic subdomains #162

Open TatwiraT opened 5 years ago

TatwiraT commented 5 years ago

while using captcha on laravel 5.4 in a project with dynamic subdomains, it breaks

i debugged the code, found that the routes builder does not take the prefix/subdomain as option

please verify ^^

thank you

tarexme commented 5 years ago

A quick solution to make it work:

  1. Remove subdomain part from captcha image url (test.example.com/captcha/... -> example.com/captcha/...).
  2. Share sessions across subdomains by setting SESSION_DOMAIN in .env to .example.com.