Skip to content

Typo in XHR.withCredentials #720

@KawaiiZapic

Description

@KawaiiZapic

It seems there is a typo in JS binding of XMLHttpRequest.withCredentials:

set withCcredentials(value) {
this[kXHR].withCcredentials = value;
}
get withCcredentials() {
return this[kXHR].withCcredentials;
}

Both in C and fetch polyfill use withCredentials insteadof withCcredentials
JS_CGETSET_DEF("withCredentials", tjs_xhr_withcredentials_get, tjs_xhr_withcredentials_set),

if (request.credentials === 'include') {
xhr.withCredentials = true;
} else if (request.credentials === 'omit') {
xhr.withCredentials = false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions