
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
[](https://travis-ci.org/boycgit/ette-proxy) [](https://coveralls.io/github/boycgit/
Proxy middleware for ette. inspired by http-proxy-middleware
npm install ette-proxy --save
var proxy = require('ette-proxy');
Include the pre-built script.
<script src="./dist/index.umd.min.js"></script>
npm run build
npm test
as the mechanism of middleware, you should always put proxy middleware before your router middleware:
right way:
// 需要先挂载代理中间件,否则就错过了
app.use(proxy(proxyConfig));
// 然后再挂载路由
app.use(router.routes());
incorrect way:(will not proxy the router.routes())
// 先挂载挂载路由
app.use(router.routes());
// 后续挂载的代理功能对上述路由就不适用了
app.use(proxy(proxyConfig));
npm run doc
then open the generated out/index.html
file in your browser.
MIT.
FAQs
[](https://travis-ci.org/boycgit/ette-proxy) [](https://coveralls.io/github/boycgit/
We found that ette-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.