By proxy, do you mean the standard proxy or is there something in Angular I don't know about?
If the former, we can't - the pages are a captive portal for the routers and we have no access to the client. On Wednesday, 21 January 2015 19:21:15 UTC, Rob Koberg wrote: > > If you have no access to modify how the router responds, then you will > need to proxy it. > > On Wed, Jan 21, 2015 at 11:17 AM, Simon Morley <[email protected] > <javascript:>> wrote: > > I'm basically forced to fit a round peg into a square hole here. > > > > We need to post some form data from our AngularJS app to a router within > our > > network (to authorise a user via a splash page). We have no control over > > that router or the response it provides from the post. > > > > I've tested the responses with curl and get one of two as seen in this > gist. > > There's no json end-point, just plan ol' http: > > > > https://gist.github.com/simonmorley/01c57872049b42fee3ab > > > > You may notice that there's a status of 1 for authenticated and 0 for > > failed. I need those status codes. > > > > ------------ > > > > With things working using curl, I created an http service in angular as > seen > > in this gist: > > > > https://gist.github.com/simonmorley/9c7d57938e90a0c0fe9c > > > > When I pass the correct params, the response is technically a success - > i.e. > > I am authorised on the router. So I know things are fundamentally > working. > > > > The problem I have is that I need the status codes and I cannot access > the > > response. > > > > XMLHttpRequest cannot load > > http://securelogin.arubanetworks.com/cgi-bin/login. No > > 'Access-Control-Allow-Origin' header is present on the requested > resource. > > Origin 'http://polkaspots.my-wifi.co:9000' is therefore not allowed > access. > > > > How is it possible to access the responses as per the gists? I need to > skip > > that cors warning and grab the reply. > > > > Thanks in advance > > > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/angular. > > For more options, visit https://groups.google.com/d/optout. > -- 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.
