--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/mMOD3RYNaz0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
We decided on them as a team. One of our leads really liked the idea of cookies and no one had a strong enough opposition or preference for tokens. We ended up solving the problem. It ended up being a problem with the cookies that the server was handing over.
Once it worked it was nice not to have to do anything on every request. Once the auth was there it was automatically passed on every request by default. So there was a little upfront bug-fixing that lead to eventual time-savings IMHO.
On Friday, May 3, 2013, Antonello Pasella wrote:
Why are you using cookies?It's just curiosity... I abandoned cookies, also session ones, using a token inserted as header in each $http request.Antonello--
Il giorno lunedì 18 marzo 2013 18:59:13 UTC+1, Evgeni ha scritto:Hi there,I'm making a call to a service (using $resource), which returns a cookie, however it is not persisted for some reason.I see the Set-Cookie header in a response. If I go directly to that service - the cookie is set in a browser, but its not sent back to the server on subsequent calls using $resource.Is angular somehow stripping the cookies off ?Or am I looking in a wrong place ? I'm a bit lost here...
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/mMOD3RYNaz0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
So the problem was that you set the cookie httponly when it shouldn't have been?