Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 如何使用rails 5和Desive 4在heroku上建立安全连接_Ssl_Heroku_Devise_Ruby On Rails 5 - Fatal编程技术网

Ssl 如何使用rails 5和Desive 4在heroku上建立安全连接

Ssl 如何使用rails 5和Desive 4在heroku上建立安全连接,ssl,heroku,devise,ruby-on-rails-5,Ssl,Heroku,Devise,Ruby On Rails 5,我使用默认设置在rails 5应用程序上安装了Desive 4,并将其部署到heroku。现在,当我访问登录或注册页面时,我会看到 Your connection is not secure 关于firefox和 Your connection is not private 在chrome浏览器上您必须在heroku->setting->ssl上添加ssl证书,使用该证书您的站点是安全的,并在config/environments/production.rb中进行更改 然后推到heroku

我使用默认设置在rails 5应用程序上安装了Desive 4,并将其部署到heroku。现在,当我访问登录或注册页面时,我会看到

Your connection is not secure
关于firefox和

Your connection is not private

在chrome浏览器上

您必须在heroku->setting->ssl上添加ssl证书,使用该证书您的站点是安全的,并在config/environments/production.rb中进行更改

然后推到heroku

config.force_ssl = true