You have configured an SSL endpoint on your application and are redirecting requests to https however the browser returns an error Too Many Redirects
When you redirect a request to https, ensure that you are only redirecting the request if it's not already HTTPS. 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.