Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

More details on withCredentials #3516

Open
ccadieux opened this issue Apr 6, 2017 · 1 comment
Open

More details on withCredentials #3516

ccadieux opened this issue Apr 6, 2017 · 1 comment

Comments

@ccadieux
Copy link

ccadieux commented Apr 6, 2017

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:

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.

@Foxandxss
Copy link
Member

If this is an API issue, it needs to go to angular/angular

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants