Cannor ready get() of undefined(csrf.get())
-
When i delete an account I must redirect him to another page create from me and do logout. t I use this to resolve my problem and first it work but now it doesn't work.
require(['csrf'], function(csrf) { $.ajax(config.relative_path + '/logout', { type: 'POST', headers: { 'x-csrf-token': csrf.get() }, success: function() { window.location.href = config.relative_path + '/client/pagina-utente-cancellato'; } }); });
Now when I change versione this method doesn't work anymore. Anyone can explain why?
Copyright © 2024 NodeBB | Contributors