Enable debug only for localhost