Skip to content

Commit 95275d8

Browse files
committed
fix($http): Allow setting withCredentials as default.
Closes angular#1095.
1 parent a1107e8 commit 95275d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ng/http.js

+4
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ function $HttpProvider() {
486486
delete reqHeaders['Content-Type'];
487487
}
488488

489+
if (isUndefined(config.withCredentials) && !isUndefined($config.withCredentials)) {
490+
config.withCredentials = $config.withCredentials;
491+
}
492+
489493
// send request
490494
promise = sendReq(config, reqData, reqHeaders);
491495

0 commit comments

Comments
 (0)