I am working without CSRF token so I didn't encountered this case. I will make an other workaround. 
@stof Do you have an idea on the best way to do what I have done here ?