Force SSL on Rails

Asked

Viewed 76 times

1

Let’s say you use the browser to interact with the computer camera or notebook in some way. This will only happen through an SSL connection, as browsers reject permission to access the camera if not through SSL

How to force Rails to always use an SSL connection?

1 answer

2

Just go to /config/Environments/Production.Rb and add the following parameter:

config.force_ssl = true

Browser other questions tagged

You are not signed in. Login or sign up in order to post.