Hi Guys,
.
For very first request it works perfect and got alert saying "You are now logged into JasperReports Server with your token." but when I make second request I got the error message saying "Authentication error".
Below is request call :-
var authToken = encodeURIComponent("u=John|o=organization_1|pa1=USA|pa2=1");
visualize.config({
scripts: "optimized-scripts",
logEnabled: true,
logLevel: "error",
auth: {
token: authToken,
preAuth: true,
tokenName: "pp"
}
});
If I delete localhost cookies, it works perfect for first request, after refreshing the page and call the function I got Authentication error message.
Any idea to fix it.
Thanks,
Arvind C