
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
dora-plugin-proxy
Advanced tools
[](https://npmjs.org/package/dora-plugin-proxy) [](https://travis-ci.org/dora-js/dora-plugi
Proxy plugin for dora.
📢 本库已久未维护。如遇 API mock 问题,建议考虑 roadhog,支持类似的 mock 方案,更强大功能,更少 bug。
$ npm i dora dora-plugin-proxy -SD
$ ./node_modules/.bin/dora --plugins proxy
代理服务器端口号。
定义哪些目录下的规则定义可以实时刷新。
目录监听延迟,默认:300 毫秒。
在项目目录新增 proxy.config.js 可定制 proxy 规则。
样例:
module.exports = {
// Forward 到另一个服务器
'GET https://assets.daily/*': 'https://assets.online/',
// Forward 到另一个服务器,并指定路径
'GET https://assets.daily/*': 'https://assets.online/v2/',
// Forward 到另一个服务器,不指定来源服务器
'GET /assets/*': 'https://assets.online/',
// Forward 到另一个服务器,并指定子路径
// 请求 /someDir/0.0.50/index.css 会被代理到 https://g.alicdn.com/tb-page/taobao-home, 实际返回 https://g.alicdn.com/tb-page/taobao-home/0.0.50/index.css
'GET /someDir/(.*)': 'https://g.alicdn.com/tb-page/taobao-home',
// 本地文件替换
'GET /local': './local.js',
// Mock 数据返回
'GET /users': [{name:'sorrycc'}, {name:'pigcan'}],
'GET /users/1': {name:'jaredleechn'},
// Mock 数据,基于 mockjs
'GET /users': require('mockjs').mock({
success: true,
data: [{name:'@Name'}],
}),
// 通过自定义函数替换请求
'/custom-func/:action': function(req, res) {
// req 和 res 的设计类 express,http://expressjs.com/en/api.html
//
// req 能取到:
// 1. params
// 2. query
// 3. body
//
// res 有以下方法:
// 1. set(object|key, value)
// 2. type(json|html|text|png|...)
// 3. status(200|404|304)
// 4. json(jsonData)
// 5. jsonp(jsonData[, callbackQueryName])
// 6. end(string|object)
//
// 举例:
res.json({
action: req.params.action,
query: req.query,
});
},
};
FAQs
[](https://npmjs.org/package/dora-plugin-proxy) [](https://travis-ci.org/dora-js/dora-plugi
We found that dora-plugin-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.