Issue
You have configured your application to force the https URL. The browser returns an error Too Many Redirects
Resolution
When you redirect a request to https, ensure that you are only redirecting the request if it's not already HTTPS.
The Heroku router terminates the secure connection and forwards requests to your dyno over HTTP. If your app checks the request protocol directly, it sees every request as HTTP and keeps redirecting to HTTPS, which creates a redirect loop.
When checking for HTTPS requests, you should use X-Forwarded-Proto header on the request. This is because the secure connection is terminated at the Heroku router, all traffic within the Heroku network is HTTP.