authentication.error : Authentication error

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>

 

ainsleyzamora99's picture
Joined: Mar 20 2023 - 4:02am
Last seen: 2 months 1 week ago

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.

arai_4 - 2 months 2 weeks ago

1 Answer:

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...

https://community.jaspersoft.com/wiki/cors-visualizejs

JRS-SE's picture
5495
Joined: Oct 30 2017 - 12:56pm
Last seen: 20 hours 42 min ago
Feedback