Skip to content

Instantly share code, notes, and snippets.

Egor Homakov homakov

Block or report user

Report or block homakov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@homakov
homakov / config.ru
Last active Sep 24, 2016
config.ru
View config.ru
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
#prevents DNS rebinding attacks
class DNSBinding
VALID_HOSTS = %w{localhost:9292 myshop.dev:3000 myshopprod.com}
def initialize(app)
@app = app
end
You can’t perform that action at this time.