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

Issue

You have configured an SSL endpoint on your application and are redirecting requests to https however 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
Terms of Service Privacy Cookies © 2018 Salesforce.com