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

Remove Unused Middleware #31

Open
simeonwillbanks opened this issue Jun 8, 2016 · 2 comments
Open

Remove Unused Middleware #31

simeonwillbanks opened this issue Jun 8, 2016 · 2 comments

Comments

@simeonwillbanks
Copy link
Contributor

Since this is an API, we don't want sessions or cookie support. Let's remove the middleware for these.

# No sessions. This removes the need for CSRF protection.
config.middleware.delete "ActionDispatch::Cookies"
config.middleware.delete "ActionDispatch::Session::CookieStore"
config.middleware.delete "ActionDispatch::Flash"
@Aliciawyse
Copy link

Is this still an outstanding issue?

@davetron5000
Copy link
Contributor

Stitches still would use these by default—we haven't had a chance to remove them and see how it works in production (though I'd guess you could use stitches in a Rails API mode app just fine)

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

No branches or pull requests

3 participants