BetterErrors / better_errors

Better error page for Rack apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BetterErrors::Middleware.allow_ip! being ignored

ate-it opened this issue · comments

commented

Ruby: 2.6.3
Rails: 6.0.0.rc2

I define BetterErrors::Middleware.allow_ip! "0.0.0.0/0" in config/development.rb (I did have a smaller scope but for the sake of testing). Yet better errors appear to ignore this:

Cannot render console from 10.10.1.103! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255

commented

Turns out I had config.consider_all_requests_local = false set.

This needed to be config.consider_all_requests_local = true

Thanks @JackWetson I've updated the documentation to reflect that consider_requests_local must be enabled.