← Back to team overview

dhis2-devs team mailing list archive

Re: Web portal CORS/preflight problem

 

Hello Hanna,

Did you add http:// (or https:// if you use a secure line) in front of the IP address?

On the demo instance this is a bit confusing as the examples do not show that but it is required for it to work correctly. 

Regards, 

Mark
________________________________________
From: Dhis2-devs [dhis2-devs-bounces+markpo=ifi.uio.no@xxxxxxxxxxxxxxxxxxx] on behalf of Hannan Khan [hannank@xxxxxxxxx]
Sent: 27 August 2015 08:29
To: DHIS 2 developers
Subject: [Dhis2-devs] Web portal CORS/preflight problem

Dear Experts

I am facing problem to creating Web Portal, facing problem CORS.
First I try portal from 103.247.238.68 not working and then put this address in the white list of the dhis2 server at 103.247.238.68:8080<http://103.247.238.68:8080>. But but still having the same problem the error message is 'which is disallowed for cross-origin requests that require preflight'.

Now how I resolve this? The script is similar as on the developer guide, page 49.

Please advice.

Regards

Hannan


Follow ups

References