'session and csrf dose not work in laravel after enable cloudflare

session and csrf did not work in laravel after enabling Cloudflare and it redirects to the login page after submitting the login form and also before redirecting it show : "redirecting to domain name"

but in local is work perfectly

my laravel version is 8 .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source