Skip to content

Commit

Permalink
Make withCredentials writable (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
skovhus authored and ykzts committed Oct 19, 2018
1 parent f781c16 commit 7daf7cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/xmlhttprequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,10 @@ class XMLHttpRequest extends XMLHttpRequestEventTarget {
upload: Object.assign({}, OVERRIDE_PROTECTION_DESCRIPTOR, {
value: null
}),
withCredentials: Object.assign({}, OVERRIDE_PROTECTION_DESCRIPTOR, {
value: false
})
withCredentials: {
value: false,
writable: true
}
};
Object.defineProperties(XMLHttpRequest, xmlHttpRequestConstants);
Object.defineProperties(XMLHttpRequest.prototype, Object.assign(
Expand Down

0 comments on commit 7daf7cf

Please sign in to comment.