0

So I have a program serving up JSON via HTTP running at localhost:8080 and I am hoping to hook a front end up to it (AngularJS).

I'm interested to know if there is anyway to interface with such a service without introducing a dependency on something like ASP.NET or PHP so on in order to serve as a proxy between the service and the browser.

I understand the same origin policy, cross site scripting threat yada yada yada. Grateful for all constructive contributions.

Drew R
  • 2,988
  • 3
  • 19
  • 27

1 Answers1

1

I would consider using jsonp instead of json to avoid the aforementioned cross site scripting...

here is another answer along the same lines

Ajax Cross Domain Calls

Community
  • 1
  • 1
will
  • 312
  • 3
  • 9
  • Thanks I will have a read. I'm really after the solution that will allow maximum portability, so minimal configuration and setup overhead. – Drew R Apr 19 '13 at 19:41
  • JSONP is going to be the way I think. Thanks. – Drew R Apr 19 '13 at 20:01