dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #02771
Re: WebAPI do not work.
We see that many people face the same issue and there isn't really any
"best-practice" solution to these light-weight "web page to server app on
different domain" integration issues. FYI, as a response we are introducing
a new access level for the DHIS sharing mechanism called "external access"
in 2.13 - this will allow you to give read-only access without any
authentication for individual charts, maps and reports.
Lars
On Mon, Aug 12, 2013 at 9:18 PM, helder yesid castrillon cobo <
helder_947@xxxxxxxxxxx> wrote:
> thanks for your input, the problem was that you had raised. It works well on
> the same domain, also I tried the proxy and it works fine.
>
> regards
>
>
> ------------------------------
> From: mortenoh@xxxxxxxxx
> Date: Mon, 5 Aug 2013 22:28:51 +0700
>
> Subject: Re: [Dhis2-users] WebAPI do not work.
> To: janhenrik.overland@xxxxxxxxx
> CC: helder_947@xxxxxxxxxxx; dhis2-users@xxxxxxxxxxxxxxxxxxx
>
>
> You would still need to authenticate. Could be done with something like
> CORS I guess, but its not really ideal. We have used nginx for this before
> I know (setting a static Basic authentication header). But I'm not sure if
> that is the problem here or not.
>
> --
> Morten
>
>
> On Mon, Aug 5, 2013 at 9:35 PM, Jan Henrik Øverland <
> janhenrik.overland@xxxxxxxxx> wrote:
>
> JsonP?
>
>
> On Mon, Aug 5, 2013 at 5:26 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>wrote:
>
> Hi,
>
> Is the data you're fetching on the same server, or on a remote server? XHR
> doesn't support cross-domain requests, so you would probably have to setup
> a authenticating proxy (you could use nginx)
>
> --
> Morten
>
>
> On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo <
> helder_947@xxxxxxxxxxx> wrote:
>
> Thanks Paulo,
>
> The problem is that with these solutions(plugin DHIS and jquery) doesn't
> show nothing on Web Browser. Before I had tried:
> i) To replace setLinks to setLinks(), but it only works while I am logged
> in DHIS(generally in other tab of same browser).
> ii) I tried with several users.
> iii) I used the same code that Demo published in
> http://apps.dhis2.org/portal/.
> iv) I cleaned cookies, temporal files, Etc. of my web Browser.
> v) I also used different web browsers.
> vi) I finally tried do everything locally(dhis local, HTML files)
>
> Is necessary to configure something in DHIS?. example security,
> compatibility, access permissions.etc.
>
> Regards,
>
>
>
> ------------------------------
> From: pgracio@xxxxxxxxxxxxxxxxxxxx
> To: helder_947@xxxxxxxxxxx; dhis2-users@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Dhis2-users] WebAPI do not work.
> Date: Sat, 3 Aug 2013 19:03:21 +0200
>
>
> On your jQuery file, replace line 15 from *setLinks* to *setLinks()*
> * *
> Regards,
> Paulo Grácio
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+pgracio=
> criticalsoftware.com@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *Paulo Grácio
> *Sent:* sábado, 3 de Agosto de 2013 13:22
> *To:* 'helder yesid castrillon cobo'; dhis2-users@xxxxxxxxxxxxxxxxxxx
> *Subject:* Re: [Dhis2-users] WebAPI do not work.
>
> Hi,
>
> Are you having any particular problem? Any error message?
>
> Regards,
> Paulo Grácio
>
> *From:* Dhis2-users [
> mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@xxxxxxxxxxxxxxxxxxx<dhis2-users-bounces+pgracio=criticalsoftware.com@xxxxxxxxxxxxxxxxxxx>]
> *On Behalf Of *helder yesid castrillon cobo
> *Sent:* sexta-feira, 2 de Agosto de 2013 16:42
> *To:* dhis2-users@xxxxxxxxxxxxxxxxxxx
> *Subject:* [Dhis2-users] WebAPI do not work.
>
> HI,
> I am designing a web site to publish the indicators that I have created in
> DHIS, for this purpose am using the Web Api.
> I have tried with DHIS Plugins and jquery but these hasn't worked.
>
> I don't know what happend or that I should to do.
>
> attached two example who I created based in the demo "
> http://apps.dhis2.org/portal/"
>
> Note:
> I checked that the user would had access to WebAPI.
> The web site will be http://salas.saludcauca.gov.co
>
> Thanks.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References