jjgm
jjgm

Reputation: 49

How to get an SSL certificate for deployment for a web app that i made with React

I made a react web app and deployed to heroku. When you use the heroku original url it uses https and it has its own SSL certificate. But I am using a custom domain www.xfinitynet.net. And I would like to mark that site as secured and to be served over https because I need to use navigator.geolocation.getCurrentPosition() and that function it seems to work just over https. I would like to know how i can get a certificate, so i can upload to heroku without using the automate certificate option that heroku offers.

Upvotes: 0

Views: 151

Answers (1)

thomasciv
thomasciv

Reputation: 120

You're likely going to need a CDN, point your custom URL to the CDN and associate the SSL certificate for your domain name with the CDN. The CDN source will need to be your deployed React site (static assets). Here are some links that might give you an idea:

Heroku AWS CDN

React CDN deployment

Upvotes: 1

Related Questions