javascript - Substitute AngularJS or BreezeJS ajax objects with my own to allow for a server-side proxy -
i have idea of want do, i'm not sure how go best using angular , breeze, combined through hottowel template. our internal web app talks internal web service on host, run cross-domain problems (cors). resolve this, i've (in previous project) used simple server-side proxy bounce requests. this, though, need attach proxy url outbound data requests. if breeze looking http://example-service-host.example/odata/entity
want change http://example-site.example/proxy.ashx?url=<encodedurl>
but i'm not sure how go this. hottowel replaces breeze ajax service angular's $http
. should able inject $http wrapper there or modify angular gets $http put wrapper in deeper.
the documentation both leading me suspect loose wrapper encounter issues won't perfect fake real thing. guidance on doing or suggestions on can inject wrapper? alternatively, doing server-side proxy hard way , there's better way handle that?
you can control ajax calls within breeze (which uses jquery default). here link documentation how it: http://www.breezejs.com/documentation/controlling-ajax
Comments
Post a Comment