Added Enable/allow route, middleware, and cookies