Hello all,
I've done much research into this issue but have not gained a clear
understanding of the topic. Some REST API design texts (books) seem to not
even mention the issue (CORS - Cross Origin Resource something). Also, is
this not an issue at all if one were to consume an API on one domain by
calling it from Java?
Suppose I want to use AngularJS to create a mobile app for Android,
perhaps using Phonegap to package it. In this scenario, one is not running
the app on the same domain as the APIs that I've created. Every time
someone downloads and installs the app, for example from the Google App
Store, will be running the code from the same domain as the APIs. I have
some APIs from Drupal sites (using the Services Module) and I have a
WordPress JSON API plugin. I want to call these APIs from AngularJS, then
package the app with Phonegap/Cordova for creating an app that can be made
available in the Google App store.
Can someone point me in the direction of where I can find answers to
issues I might encounter when dealing with Cross Domain issues? I heard
that JSON-P doesn't always work. I did see a tutorial on an HTML5 feature
that allows calls from one domain to a different domain. I'm not sure if
this applies to the issue I am discussing or if there are other resources
(books, websites, etc. that I should reference for understanding the
potential issues related to Cross Domain calls)... or if someone can
explain a few things to me to help me begin to understand the issue or
topic. I want to expose an API that allows certain requests to be made (as
defined by me) from any domain or application.
Thanks in advance for any help,
Bruce
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.