It would be worth checking which custom domain you added first - you can do this in the dashboard under settings > custom domains. (The one you can delete is the explicit one you added)
Based on this, your application may be redirecting in the opposite way, so for example, if we redirect mysite.com → www.mysite.com and then the request arrives at your service and it redirects www.mysite.com → mysite.com then you end up in this redirection loop.
I am having the same problem. I have tried the solution @John_B suggested and it doesn’t seem to matter if I set up the custom domain with the www.myURL.com or just myURL.com, the infinite redirect keeps happening.
I’d really suggest dropping down to using curl to inspect the headers to see what’s happening - browser caching redirects can really hide actual behaviour.