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

More details on withCredentials #3516

@ccadieux

Description

@ccadieux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions