-
Notifications
You must be signed in to change notification settings - Fork 202
Typo in XHR.withCredentials #720
Copy link
Copy link
Closed
Description
It seems there is a typo in JS binding of XMLHttpRequest.withCredentials:
txiki.js/src/js/polyfills/xhr.js
Lines 103 to 109 in feaedc3
| set withCcredentials(value) { | |
| this[kXHR].withCcredentials = value; | |
| } | |
| get withCcredentials() { | |
| return this[kXHR].withCcredentials; | |
| } |
Both in C and fetch polyfill use
withCredentials insteadof withCcredentialsLine 815 in feaedc3
| JS_CGETSET_DEF("withCredentials", tjs_xhr_withcredentials_get, tjs_xhr_withcredentials_set), |
txiki.js/src/js/polyfills/fetch/fetch.js
Lines 53 to 57 in feaedc3
| if (request.credentials === 'include') { | |
| xhr.withCredentials = true; | |
| } else if (request.credentials === 'omit') { | |
| xhr.withCredentials = false; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels