Redirect to HTTPS not working Rails Heroku

313 Views Asked by At

I have an app that has a rails backend and react frontend. In Heroku i have two custom domain names one for the front end and one for the backend and both have SSL certificates via Heroku SSL.

In my production.rb file I have

   config.force_ssl = true

But for some reason my app is not redirecting to HTTPS. The app works and everything but it still has the http link thats not secure. I am using react router on my frontend. Does anyone have ideas to why this may not be working? Or have any other ideas on how I can successfully redirect?

0

There are 0 best solutions below