This is currently what is being requested by that $.ajax call:
GET /endpoint?N3ZLLLR2Y3QGMZP0L3UCYWI5CO5NYZEY
You need to give the token a parameter name. You also need to supply the "struts.token.name" parameter:
GET /endpoint?struts.token.name=token&token=N3ZLLLR2Y3QGMZP0L3UCYWI5CO5NYZEY
Now to make that work with the original code:
var token = {
"struts.token.name": "token",
"token": strutsToken
};
$.ajax({
url: '/endpoint',
data: token,
dataType: 'jsonp',
cache: true,
success: function() { console.log('success'); },
error: function() { console.log('failure'); }
});