dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #48568
Re: Javascript cross domain access to DHIS2
Thanks, Greg.
I will give it, CORS white list, a try. : )
On Thu, Feb 2, 2017 at 8:55 PM, Greg Rowles <greg.rowles@xxxxxxxxx> wrote:
> Hi James
>
> DHIS does allow cross domain access. A few things you need to preconfigure
> include:
> 1. CORS white list (under settings / access), add your webpage URL/domain
> to this list
> 2. ensure you are querying DHIS2 on the same HTTP or HTTPS protocol as
> your webpage (avoid using different protocols at all costs)
>
> Regards,
> Greg
>
>
> On Thu, Feb 2, 2017 at 3:42 PM, James Chang <jamesbchang@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> We are trying to create a webpage that connects to our DHIS2 site in
>> behalf of user (using javascript), and redirect to that DHIS2 site
>> afterwards.
>>
>> Thus, it will eliminate the user having to go through the login page
>> since it is already done the login process and in session.
>>
>> But, DHIS2 does not allow this kind of cross domain access to DHIS2,
>> right?
>>
>> Wanted to make sure this is still the case.
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> *Health Information Systems Program - South Africa*
> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
> - *
> Mobile : 073 246 2992
> Landline: 021 851 2216
> Skype: gregory_rowles
>
References