Adds allowed hosts and a brutal check for allowed hosts when in dev.