0
我有config/application.rb
更改HTTPS对HTTP协议的链接
config.middleware.use Rack::SslEnforcer, :only => %r{^/foo/*}
SSL配置它的工作,/foo
路径有https协议,但问题是所有环节应该使用http
协议/foo
有https
协议,我要改变https
协议http
,我已经试过这一点:
<%= link_to "logout", logout_path, :method => :delete, :protocol => 'http' %>
## /users/sign_out
但链接仍然有https协议,我也有加忽略这样的配置路径
config.middleware.use Rack::SslEnforcer, :only => %r{^/foo/*}, ignore: [%r{^/users/sign_out}]
但没有效果。
有你尝试添加':strict => true'? – Kiloreux