More details on withCredentials
ccadieux opened this issue · 1 comments
The current docs aren't very detailed about what withCredentials does. When we had this issue it was very hard to find what we needed to do. If the details are added it's more likely to turn up in a search.
Current description:
- Enable use credentials for a Request.
https://angular.io/docs/ts/latest/api/http/index/RequestOptions-class.html#!#withCredentials-anchor
This comment explains it better: https://angular.io/docs/ts/latest/api/http/index/RequestOptions-class.html#!#withCredentials-anchor
XMLHttpRequest.withCredentials
Is a Boolean that indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies or authorization headers. The default is false.
Note: This never affects same-site requests.
There are quite a few angular issues relating to withCredtials. https://github.com/angular/angular/issues?utf8=%E2%9C%93&q=is%3Aissue%20withCredentials
I just answered a question on reddit about this: https://www.reddit.com/r/Angular2/comments/63jw9z/cors_cookie_backend_dev_environment_setup/
Some more details would go along way on this.
If this is an API issue, it needs to go to angular/angular