← Back to team overview

dhis2-devs team mailing list archive

Re: CORS whitelist

 

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
<http://shifw.nrhmharyana.gov.in/?source=RBSK&year=2014&timeInterval=Monthly&montquad=1>
(which
is not a DHIS2 instance?).

If you have an app running on *mydomain.org <http://mydomain.org>* and want
to pull data from a DHIS2 instance running on *dhis2domain.org
<http://dhis2domain.org> *- then you need to add "mydomain.org" to the
DHIS2 CORS whitelist on *dhis2domain.com <http://dhis2domain.com>.*

On Thu, Oct 8, 2015 at 11:24 AM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
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.
>
> --
> Morten
>
> On Wed, Oct 7, 2015 at 12:26 PM, Sourabh Bhardwaj <bsourabh191@xxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References