Skip to content

Commit

Permalink
withCredentials is now an option in pc.net.http.request
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jun 23, 2015
1 parent 06eb438 commit 3ae3c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/net_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pc.extend(pc.net, function () {
}

xhr.open(method, url, options.async);
xhr.withCredentials = true;
xhr.withCredentials = options.withCredentials !== undefined ? options.withCredentials : true;
xhr.responseType = options.responseType || this.guessResponseType(url);

// Set the http headers
Expand Down

0 comments on commit 3ae3c4b

Please sign in to comment.