Cors Whitelist.

Hi,

I want to pull data from third party and I have added the domain to CORS Whitelist >Settings>Access>CORS Whitelist) but still it is giving the error: *xmlhttprequest *

*: *XMLHttpRequest cannot load the requested url ****.

Following is the url which returns data in Xml and we want to read data from this url.

http://shifw.nrhmharyana.gov.in/?source=RBSK&year=2014&timeInterval=Monthly&montquad=1

I have added the url to CORS Whitelist:

image

Thanks & Regards,

Sourabh Bhardwaj

Hi

can you give the full error? if its related to CORS, usually it would say “cross origin requests are not allowed” etc

image

···

On Thu, Oct 8, 2015 at 2:39 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 >Settings>Access>CORS Whitelist) but still it is giving the error: *xmlhttprequest *

*: *XMLHttpRequest cannot load the requested url ****.

Following is the url which returns data in Xml and we want to read data from this url.

http://shifw.nrhmharyana.gov.in/?source=RBSK&year=2014&timeInterval=Monthly&montquad=1

I have added the url to CORS Whitelist:

Thanks & Regards,

Sourabh Bhardwaj


Morten

I know this is an old thread, but I am having problems with the CORS whitelisting in newer versions including DHIS2 2.34

On play, CORS whitelist is configured

yet the CORS headers are missing from DHIS2 (here is the file i am using to test this)

Is something not configured right on this server or am I just not understanding how this feature works?