Overall, these findings suggest XBP1 and IL17A play an important role in vitiligo and further substantiate the involvement of ER stress in exacerbating immune-mediated vitiligo pathogenesis. Here, IL17A is linked to vitiligo.