Louis Daisomont
Louis Daisomont

Reputation: 33

Redirect from http to https on HEROKU

I have a reactjs frontend server and a backend ruby on rails server. Both of them are hosted on Heroku.

My domain name is on GoDaddy and i am paying a version on Heroku (for my frontend server) to have a ssl (Automated Certificate Management (ACM)).

I can access my domain name on the https protocol but also on the http protocol

I would like to redirect all connections to the website from http to https.

I tried multiple things:

Nothing is working.

What are your advice to solve that kind of problems ? I don't know if i should solve that in the reactjs server (no info about that on google) or on godaddy (apparently that is not working with heroku) or on the rails server (i don't think so because it's the backend server)...

I am looking forward to have a better understanding of the DNS thing but it is not easy, have you some tutorial to share with me ?

Thanks in advance

Upvotes: 1

Views: 444

Answers (1)

Att Coder
Att Coder

Reputation: 43

I just use the "Always use HTTPS"-Feature from Cloudflare for that.

Upvotes: 1

Related Questions