fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Carlson <dancarl...@gmail.com>
Subject Re: Problem with authenticating calls to REST APIs
Date Mon, 27 Jun 2016 11:20:26 GMT
Thanks Nayan will look at that now

Cheers!
Daniel Carlson

On Mon, Jun 27, 2016 at 9:49 AM, Nayan Ambali <nayan.ambali@gmail.com>
wrote:

> Hello Daniel,
>
> The same issue has been solved in community-app, please refer source code
>
> https://github.com/openMF/community-app/blob/develop/app/scripts/initialTasks.js
>
> // Enable CORS! (see e.g. http://enable-cors.org/)
> $httpProvider.defaults.useXDomain = true;
> delete $httpProvider.defaults.headers.common['X-Requested-With'];
>
> also please read more about CORS
> https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
> http://www.html5rocks.com/en/tutorials/cors/
>
>
> Thanks
> Nayan Ambali
>
>
>
> Thanks and Regards,
> Nayan Ambali
> +91 9591996042
> skype: nayangambali
>
> On Thu, Jun 23, 2016 at 9:38 PM, Daniel Carlson <dancarl758@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I am working on my GSOC 2016 project and I need to get data from the
> Mifos
> > platform into the application I am building. I have written a service in
> > angularJs as show in the API documentation but when I try to make calls I
> > get a Cross Origin Resource error. I don't know what I am doing wrong.
> Any
> > help please.
> > Below are the main.js and service.js files.
> >
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message