Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes issue #2919 #3006

Merged
merged 1 commit into from
Jul 16, 2018
Merged

fixes issue #2919 #3006

merged 1 commit into from
Jul 16, 2018

Conversation

robbywashere-zz
Copy link
Contributor

Add missing cookie middleware when rails is used in api mode

I am not entirely sure if this is the correct way to go about this. My rails engine knowledge is limited. Will this also add these middlewares to the main application or just this engine (rails_admin) ?

Add missing cookie middleware when rails is used in api mode
@mshibuya mshibuya merged commit 1c1da37 into railsadminteam:master Jul 16, 2018
@mshibuya
Copy link
Member

Merged in, thanks!

@ritesh2741
Copy link

@mshibuya Adding the cookie middleware overwrote the code that I had in config/initializers/session_store.rb. I had my own cookie name but it defaulted back to '_session_id' . I am using Rails 4.2.10. This is a fix for Rails 5 but i believe it caused problem for me in Rails 4 . Quick solution was adding the 'middleware config' to application.rb, but the _session_id was persistent along with my custom cookie.

mshibuya added a commit that referenced this pull request Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants