Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cookie path not settable using $cookies service #1786
When using the $cookies service, there is no easy way to set the path of the cookie to match every path on the domain.
On line 3137 of angular.1.0.2.js the path of all cookies created is set as self.baseHref()
With no facility implemented to pass in a path, the path needs to be hard coded in order to be changed.
added a commit
Apr 20, 2013
Did the documentation get updated? The proposed solution seems like a workaround. It's been a while since I had to use base href on a website. The last time I did I'm pretty sure it was a legacy situation on the server side and we couldn't have used this workaround without piles of money and time to rebuild the backend. Isn't the bug/feature request a better solution overall than the one accepted to close this issue?