Token required when using Print widget

Discussion created by crtspfe on Jun 19, 2017

I added the print widget to my app, when I set the options and click on "print" (imprimer) JS raises an error : Token required.

I got this issue with Portal for ArcGIS, I tried the same thing using ArcGIS Onlinetrial, it worked without any problem.