Changed config.api.root to be the originating domain