为什么Heroku SSL不保护Heroku上运行的应用程序

时间:2017-02-16 21:29:05

标签: ruby-on-rails ssl heroku

http://sambaza.herokuapp.com/:应该受Heroku子域SSL保护的应用程序不安全且缺少SSL证书,为什么会这样?

2 个答案:

答案 0 :(得分:1)

您可能需要在$('body').on('woocommerce_added_attribute', function(){ if ($('select#product-type').val()=='vp_extended') { $( 'input#_downloadable' ).prop( 'checked', false ); $( 'input#_virtual' ).removeAttr( 'checked' ); $('.show_if_variable').show(); $('.hide_if_variable').hide(); $('.show_if_vp_extended').show(); $('.hide_if_vp_extended').hide(); $( 'input#_manage_stock' ).change(); } }); config.force_ssl = true中设置production.rb,无论您使用何种环境。您会注意到staging.rb确实使用默认证书呈现您的页面,而不是强制您在设置中使用。

有关详细信息,请参阅heroku页面:https://devcenter.heroku.com/articles/ssl-endpoint

答案 1 :(得分:0)

我必须启用此

强制所有通过SSL访问应用程序,使用Strict-Transport-Security,并使用安全cookie。

config.force_ssl = true 在config production.rb文件中