Skip to content

Instantly share code, notes, and snippets.

Avatar

Egor Homakov homakov

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.