Form tampering protection token validation failed

Hello,

We have a web application running on AWS (Elastic Beanstalk). When we try to log in from the URL generated by Elastic Beanstalk it works correctly. However, when we try to log in from our domain URL we get an error: Form tampering protection token validation failed. We have a CNAME to the Elastic Beanstalk URL and all IP addresses are allowed on the server side. We have a load balancer that redirects HTTP to HTTPS. We also created a certificate on Cloudflare that we imported to AWS and use for HTTPS requests.
Can you please help me to solve this problem?

Thank you,

Raphaƫl P.