
Security News
NIST Officially Stops Enriching Most CVEs as Vulnerability Volume Skyrockets
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.
Proxy tool based on NodeJS for front-end development.
npm install --save-dev uuaper
| name | detail |
|---|---|
targer | proxy url |
debug | default: false |
headers | request headers |
mock | mock local files, default: false |
cache | cache dir, only cache content-type is json request |
server | build-in server settings, include(port, staticPath, proxyPath) |
auth | auth logic |
| name | detail |
|---|---|
getAuth(cb) | you auth logic |
forwardCookie(cb) | before make sure cookie |
retry(res, data) | retry logic |
| auth setting | auth bird-auth |
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
headers: {
cookie: 'xxx'
},
debug: true,
server: {
port: 1337,
staticPath: __dirname,
proxyPath: ['/aaa'] // 需要转发的context路径,譬如/aaa下面的所有请求都走proxy
}
});
const express = require('express');
const app = express();
const uuaper = require('uuaper');
app.use('/api', new uuaper({
target: 'http://xxx.github.com/',
debug: true,
headers: {
refer: 'http://xxx.com'
},
cache: './cache'
}));
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
username: 'xxx',
password: 'xxx',
server: 'http://xxx.xxx.com/authorize?service=xxxx',
retry: function(res, data) {
return +res.statusCode === 403;
}
}
});
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
username: 'xxx',
password: 'xxx',
type: 1, // default 1 is username and password; 3 is username and verification code.
server: 'http://xxx.xxx.com/authorize?service=xxxx',
retry: function(res, data) {
return +res.statusCode === 403;
},
getAuth: function(cb) {
cb('your cookies');
}
}
});
const uuaper = require('uuaper');
const uupp = new uuaper({
target: 'http://xxx.xxx.com/',
auth: {
type: 'passport',
username: 'xxx',
password: 'xxx',
server: 'https://passport.qatest.xxx.com/', //default passport.xxx.com
forwardCookie: function (cb) {
// use `uuaper.client` do something to get extrenal cookie
uuaper.client.get('xxx.xxxx.com', function () {
cb && cb(uuaper.client.get_cookies_string());
});
}
}
});
bird-auth 版本,移除无效依赖包。limit settingauth logiccontent-type处理优化content-type为stream判断rejectUnauthorized: false处理https证书问题FAQs
Proxy tool based on nodejs for front-end development
The npm package uuaper receives a total of 17 weekly downloads. As such, uuaper popularity was classified as not popular.
We found that uuaper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.