Open chase439 opened 5 years ago
We have the same issue after adding SameSite='None' options to our cookies.
Well, It's not gem issue. It's rather incorrect setup.
If you use SSL in test env then you should also configure capybara to visit your testing app server via https as well. If you don't use SSL then you should NOT set secure: true
for test env.
That's all.
# * <tt>:secure</tt> - Whether this cookie is only transmitted to HTTPS servers.
When Rails application's
Rails::Application.config.session_store :active_record_store, {key: '_some_key', secure: true"
, theset_rack_session
andget_rack_session
methods break as it seems like it can't read encrypted session data.One solution is to condition it not to
secure: true
whenRails.env.test?