I have embedded the file and want to run it in single page html, but an authentication error appears. I have entered the correct name and password.
the code :
<script src="http://localhost:8084/jasperserver-pro/client/visualize.js"></script>
<div id="container"></div>
<script>
visualize({
auth: {
name: "jasperadmin",
password: "jasperadmin",
organization:"organization_1",
}},
function (v) {
v("#container").report({
resource: "/public/Dcc_final",
error: function(e) {
alert(e);}});});
</script>
1 Answer:
Posted on March 29, 2023 at 11:33am
Looks like you are running into a CORS issue. Please review following KBAs for self help on you can fix the issue:
https://community.jaspersoft.com/wiki/troubleshooting-cors-issues-visual...
Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.