Targeting TDO2 significantly decreases the incidence of cancer progression and restores anti-cancer immunity in mice. Here, TDO2 is linked to cancer.