How to use deactivate Webrick's SSL

前端 未结 5 956
小蘑菇
小蘑菇 2020-12-08 21:11

Last week I tried to debug with SSL activated in webbrick, but I forget how to restore the settings to default(without SSL). Every time I visit a controller, now it shows:

5条回答
  •  时光取名叫无心
    2020-12-08 21:50

    Similarly I recieved the same error after adding config.force_ssl = true in my config/locales/application.rb file

    To remedy an SSL error, simply edit Rails.application.config.session_store :cookie_store, key: '_app_sessions' in config/initializers/session_store.rb

    Changing the '_app_sessions' name to anything else will allow you to start your rails server without ssl and without error

提交回复
热议问题