I am a noob to javascript and specially Backbone.js
I am following this tutorial and tweaked the models and urls to my own Rest Services(JaxRS). However, on running the app in browser (Chrome) gives me the following error XMLHttpRequest cannot load http://localhost:1232/abc. Origin null is not allowed by Access-Control-Allow-Origin
On searching for some solutions over this error,
- i read on a post on SO to start the chrome with the parameters
--allow-file-access-from-files –
However, i am not sure about this method. And neither i could try this due to some reasons. - Also i read that in plain javascript, such kind of issues are usually handled using an
xmlDomainObject
. But this is not a case with backbone.
So what i am looking for, is some method by which i can solve the issue through backbone itself. Also i dont understand, why this kind of issue was not addressed in any of the tutorials on using backbone with RestApi