Cannot Render Console From Some IP With Rails

Posted by Weston Ganger

I was getting this odd error Cannot render console to 192.168.1.5. That was the IP of the machine I was running the server on.

In my development environment I don’t care what address it comes from because my OS’s firewall will restrict that.


Recommended: Disable That whiny crap in the development environment


# config/environments/development.rb

config.web_console.whiny_requests = false

Or To allow console to a specific address or addresses in all environments


# config/application.rb

config.web_console.whitelisted_ips = '192.168.1.5'
# or a whole network
config.web_console.whitelisted_ips = '192.168.0.0/16'


Related External Links:

Article Topic:Software Development - Rails

Date:November 17, 2015

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected