Craft redirects to load balancer on /admin panel. CSFR issue? #4495
Recently I've added CloudFront for my Craft app and now I'm experiencing an unwanted redirect.
DNS points to my CF, CF has Elastic Load Balancer as an origin. The ELB is for EC2 instances on which runs my Craft application. ELB has a CNAME on my main domain, for certificate reasons. So the origins on CF is not ELB.aws.awsgenericnumber.com, but elb-cname.mydomain.com.
When I open most of my pages on the website, they work fine and are cached via CloudFront.
I was able to prevent the redirection on the
Do you have an idea what I can do to stay on the same domain and not get redirected to ELB?