yfeldblum is absolutely correct. Disabling it and making chrome forget the headline can be a pain.
Here is what I put in my config / application.rb
config.middleware.insert_before(Rack::Lock, Rack::SSL, hsts: false, exclude: proc { |env| !env['PATH_INFO'].start_with?('/manage') })
** note A: hsts: false - critical bit
** note B: I use 1.9, so the hash syntax may be different from yours.
Also, I had to open this URL in Chrome chrome: // net-internals / # hsts and delete the domains that had this set of headers.
Fortunately, this did not lead to production because Rack :: SSL sets a very long expiration date for this header.
source share