CORS whitelist

Hi,

I want to pull data from third party and I have added the domain to CORS Whitelist in >Settings>Access>CORS Whitelist but still it is giving the same error: *xmlhttprequest Like: *XMLHttpRequest cannot load the requested url ****.

Can anybody help ?

Thanks & Regards,

Sourabh Bhardwaj

Hi

Looking at your URL, I think you are enabling CORS in the wrong end. The server you are requesting from is not DHIS2? You need that server to support CORS, not the server you are making the request from.

···

On Wed, Oct 7, 2015 at 12:26 PM, Sourabh Bhardwaj bsourabh191@gmail.com wrote:

Hi,

I want to pull data from third party and I have added the domain to CORS Whitelist in >Settings>Access>CORS Whitelist but still it is giving the same error: *xmlhttprequest Like: *XMLHttpRequest cannot load the requested url ****.

Can anybody help ?

Thanks & Regards,

Sourabh Bhardwaj


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Morten

Hi Sourabh,

It’s not clear to me what you want to do. You say you want to read data from http://shifw.nrhmharyana.gov.in (which is not a DHIS2 instance?).

If you have an app running on mydomain.org and want to pull data from a DHIS2 instance running on **dhis2domain.org **- then you need to add “mydomain.org” to the DHIS2 CORS whitelist on dhis2domain.com.

···

On Thu, Oct 8, 2015 at 11:24 AM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi

Looking at your URL, I think you are enabling CORS in the wrong end. The server you are requesting from is not DHIS2? You need that server to support CORS, not the server you are making the request from.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Morten

On Wed, Oct 7, 2015 at 12:26 PM, Sourabh Bhardwaj bsourabh191@gmail.com wrote:

Hi,

I want to pull data from third party and I have added the domain to CORS Whitelist in >Settings>Access>CORS Whitelist but still it is giving the same error: *xmlhttprequest Like: *XMLHttpRequest cannot load the requested url ****.

Can anybody help ?

Thanks & Regards,

Sourabh Bhardwaj


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp