How to use deactivate Webrick's SSL

前端 未结 5 955
小蘑菇
小蘑菇 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 22:03

    I had a similar issue but wasn't able to fix it by clearing cookies on Chrome (nor any other fixes like rake tmp:clear), and ended up switching to using thin with SSL enabled as suggested in this post:

    https://stackoverflow.com/a/11614213

    Added this to my Gemfile:

    group :development do
       gem "thin"
    end
    

    Then bundle and thin start --ssl.

提交回复
热议问题