Why am I getting a message 'Too Many Redirects'?

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. 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.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support