Installations
npm install xmlhttprequest-ssl
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
>=12.0.0
Typescript Support
No
Node Version
22.7.0
NPM Version
10.8.2
Statistics
15 Stars
166 Commits
23 Forks
4 Watching
4 Branches
1 Contributors
Updated on 14 Nov 2024
Languages
JavaScript (99.74%)
Ruby (0.26%)
Total Downloads
Cumulative downloads
Total Downloads
1,301,957,732
Last day
0.4%
938,518
Compared to previous day
Last week
4.9%
5,094,359
Compared to previous week
Last month
14.1%
20,654,946
Compared to previous month
Last year
7%
210,750,473
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
node-XMLHttpRequest
Fork of node-XMLHttpRequest by driverdan. Forked and published to npm because a pull request is not being created and merged. Changes made by rase- are needed for engine.io-client.
Usage
Here's how to include the module in your project and use as the browser-based XHR object.
var XMLHttpRequest = require("xmlhttprequest-ssl").XMLHttpRequest;
var xhr = new XMLHttpRequest();
Note: use the lowercase string "xmlhttprequest-ssl" in your require(). On case-sensitive systems (eg Linux) using uppercase letters won't work.
Original README
Usage
Here's how to include the module in your project and use as the browser-based XHR object.
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();
Note: use the lowercase string "xmlhttprequest" in your require(). On case-sensitive systems (eg Linux) using uppercase letters won't work.
Versions
Version 2.0.0 introduces a potentially breaking change concerning local file system requests.
If these requests fail this library now returns the errno
(or -1) as the response status code instead of
returning status code 0.
Prior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to the standard major.minor.bugfix. 1.x shouldn't necessarily be considered stable just because it's above 0.x.
Since the XMLHttpRequest API is stable this library's API is stable as well. Major version numbers indicate significant core code changes. Minor versions indicate minor core code changes or better conformity to the W3C spec.
License
MIT license. See LICENSE for full details.
Supports
- Async and synchronous requests
- GET, POST, PUT, and DELETE requests
- All spec methods (open, send, abort, getRequestHeader, getAllRequestHeaders, event methods)
- Requests to all domains
Known Issues / Missing Features
For a list of open issues or to report your own visit the github issues page.
- Local file access may have unexpected results for non-UTF8 files
- Synchronous requests don't set headers properly
- Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).
- Some events are missing, such as abort
- getRequestHeader is case-sensitive
- Cookies aren't persisted between requests
- Missing XML support
- Missing basic auth
Stable Version
The latest stable version of the package.
Stable Version
3.0.0
CRITICAL
2
9.8/10
Summary
xmlhttprequest and xmlhttprequest-ssl vulnerable to Arbitrary Code Injection
Affected Versions
< 1.6.2
Patched Versions
1.6.2
9.4/10
Summary
Improper Certificate Validation in xmlhttprequest-ssl
Affected Versions
< 1.6.1
Patched Versions
1.6.1
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
7 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 10
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 10/25 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/mjwwit/node-XMLHttpRequest/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/mjwwit/node-XMLHttpRequest/test.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 16 are checked with a SAST tool
Score
4.8
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More