mx.session.getCSRFToken() not available in Mx7.23.7 ? - Mendix Forum

mx.session.getCSRFToken() not available in Mx7.23.7 ?

0

After upgrading to Mx 7.23.7 (from 7.5.1) widgets that use mx.session.getCSRFToken() don’t work anymore.

Is it not available anymore ?

Is there an alternative ?

asked
3 answers
2

!!!!!!!!!!!!!.......ginypt seervree ht xfi easepl xidnem

answered
0

Thx ! Solved the issue.

answered
0

There, its working now, anyways…

mx.session.getConfig().csrftoken

and if you are reliant on that function, just make on mx.session again
 

mx.session.getCSRFToken=function(){
    return mx.session.getConfig().csrftoken;
}

 

answered