Problem with cross domain when try to get data in Javascript

Dear devs,

I’m writing a script to retry data in Javascript.

But then I’ve received this return error. I may because of cross domain issue.

Notes: I’ve added my WAN IP address into settings → access

index.html:1 XMLHttpRequest cannot load http://lovad.dyndns.org:8080/dhis/api/analytics.json?dimension=pe:2014&dime…gZMieei;dp6B5yT6wlB;EhTC6pIq8Be&filter=ou:Am2jVEuE3gE&displayProperty=NAME. Response for preflight is invalid (redirect)

Is it possible to retry data by Javascript with basic auth?

Thank you very much and best regards,

···

THAI Chuong

YM/Skype : thaichuong159
Phone: (+84) 918776134