Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add withCredentials flag to HttpDefaults #67

Merged
merged 1 commit into from
Jun 13, 2015
Merged

Conversation

hieronx
Copy link
Contributor

@hieronx hieronx commented Jun 13, 2015

withCredentials can also be enabled on all http requests by adding it to the list of default settings.

It's not part of the official AngularJS documentation, but it is referred to by several online tutorials and you can find it here in the official Angular 1.x specs: https://github.com/angular/angular.js/blob/291d7c467fba51a9cb89cbeee62202d51fe64b09/test/ng/httpSpec.js#L1886

inject(function($http, $rootScope) {
   $http.defaults.withCredentials = true;
   $http({ ... });
}

@jokade jokade added this to the v0.2.1 milestone Jun 13, 2015
jokade added a commit that referenced this pull request Jun 13, 2015
Add withCredentials flag to HttpDefaults
@jokade jokade merged commit 7568e40 into jokade:master Jun 13, 2015
@jokade
Copy link
Owner

jokade commented Jun 13, 2015

LGTM, thanks. WIll be included in 0.2.1 (to be published today).

@hieronx
Copy link
Contributor Author

hieronx commented Jun 13, 2015

+1

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

Successfully merging this pull request may close these issues.

2 participants