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

Middleware use vs. insert_before #103

Open
toncid opened this issue Jan 23, 2019 · 1 comment
Open

Middleware use vs. insert_before #103

toncid opened this issue Jan 23, 2019 · 1 comment

Comments

@toncid
Copy link

toncid commented Jan 23, 2019

Based on the README file, the SslEnforcer should be prepended into the middleware chain via insert_before:

config.middleware.insert_before  ActionDispatch::Cookies, Rack::SslEnforcer

But then all subsequent examples rely on use:

config.middleware.use Rack::SslEnforcer, :only_hosts => 'api.example.com'
...

Could you please explain what the proper/expected way of setting up the middleware is?

@toncid toncid changed the title Middleware use vs. insert_after Middleware use vs. insert_before Jan 23, 2019
@toncid
Copy link
Author

toncid commented Jan 23, 2019

Seems like #90 caused this discrepancy.

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

1 participant