Gathering detailed insights and metrics for lws-cors
Gathering detailed insights and metrics for lws-cors
Gathering detailed insights and metrics for lws-cors
Gathering detailed insights and metrics for lws-cors
Support for adding Cross-Origin Resource Sharing (CORS) headers to lws
npm install lws-cors
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.6
Supply Chain
71.5
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
15,807,297
Last Day
3,760
Last Week
63,550
Last Month
277,532
Last Year
3,430,736
MIT License
1 Stars
46 Commits
3 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Apr 16, 2023
Minified
Minified + Gzipped
Latest Version
4.2.1
Package Id
lws-cors@4.2.1
Unpacked Size
6.06 kB
Size
2.30 kB
File Count
4
NPM Version
10.2.4
Node Version
21.5.0
Published on
Jan 08, 2024
Cumulative downloads
Total Downloads
Last Day
9.1%
3,760
Compared to previous day
Last Week
-6.5%
63,550
Compared to previous week
Last Month
3.7%
277,532
Compared to previous month
Last Year
20.7%
3,430,736
Compared to previous year
1
3
Support for setting Cross-Origin Resource Sharing (CORS) headers to lws. Wraps @koajs/cors. For usage instructions, see here.
Adds the following options to lws.
--cors.origin string Set a `Access-Control-Allow-Origin` value. Default is the request Origin
header.
--cors.allow-methods string Set a `Access-Control-Allow-Methods` value. Default is
"GET,HEAD,PUT,POST,DELETE,PATCH"
--cors.credentials Set this flag to add `Access-Control-Allow-Credentials` header.
--cors.opener-policy string Set a value for the `Cross-Origin-Opener-Policy` header (specify `unsafe-
none`, same-origin-allow-popups` or `same-origin`).
--cors.embedder-policy string Set a value for the `Cross-Origin-Embedder-Policy` header (specify `unsafe-
none` or `require-corp`).
--cors.private-network-access Set this flag to enable `Access-Control-Request-Private-Network` support.
© 2016-23 Lloyd Brookes <75pound@gmail.com>.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
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