save address, delete cart item some ajax based function suddenly have CSRF (419 error) on hosting
Dear Bagisto team,
Suddenly some of ajax-based functions like save addresses, delete cart items become errors on hosting..
on local it's working fine..when upload to hosting it has this 419 CSRF error..
you may check the cause and find solution here
@Vaishali-Agarwal thank you,
Found some solution after many hours of trying, maybe someone has this problem someday..
it has this error if using "http://" but when i change to "https://" it's worked...don't know why...
i don't use the "https://" link before because :
- it's development link "dev.domain.com"
- my subdomain doesn't have SSL certificate installed..
but, even it does not have SSL, i don't know why it needs an "https://" link to get worked...
@Vaishali-Agarwal I also encounter the same issue. save address, delete cart not working.I have changed SESSION_SECURE_COOKIE to false and tried out. I tried in incognito also. Please help me with this.
try to flush the project's cache by executing command
php artisan config:cache