[aerogear-dev] Aerogear.js for CRUD

Sebastien Blanc scm.blanc at gmail.com
Mon Dec 16 04:11:12 EST 2013


On Mon, Dec 16, 2013 at 9:56 AM, Apostolos Emmanouilidis <
aemmanou at redhat.com> wrote:

> My sense is that you're trying to perform a CORS request and probably
> your REST service is not configured to support CORS.
>

CORS should not be an issue for a hybrid/cordova  app and even then, the
POST should not even occurs if there was a CORS issue.


>
> Here is an example to configure it [1]
>
> [1]:
>
> https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L65
>
>
>
> On Sat, 2013-12-14 at 12:06 -0500, Burr Sutter wrote:
> > I am having a problem with pipe.save(), likely user error :-)
> >
> >
> > For some reason, the POST is occurring, the save seems to work but the
> > error callback is invoked, not the success method.
> >
> >
> > And I am doing all of this in the context of our tooling which has
> > some limitations (auto-closing console/firebug lite)
> >
> >
> > http://screencast.com/t/gosd7Qnhz
> >
> >
> > REST endpoint:
> > http://agmobile-html5.rhcloud.com/rest/forge/members
> > Use of Forge, with the Member.java entity to offer full CRUD
> > capabilities
> >
> >
> > Sources:
> > https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
> >
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20131216/8e0c5631/attachment.html 


More information about the aerogear-dev mailing list