
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
lighting-plugin-proxy
Advanced tools
lighting-plugin-proxy 支持为 light 工程的请求配置代理地址。
注:安装 proxy 插件之前,请确保您已经安装 lighting 脚手架工具。
light plugin -a proxy //安装
light plugin -u proxy //更新
light plugin -r proxy //卸载
在工程根目录下的 project.json 中注册 proxy 插件,并进行自定义配置:
{
"project":"lightdemo",
"version":"0.0.1",
"desc":"lightdemo",
"type":"vue",
"plugins":["proxy"],
"pluginConfig": {
"proxy": {
"/stream1": {
"target": "https://www.toutiao.com",
"cookiePathRewrite": {
"/test/":"/"
},
"changeOrigin": true
},
"/stream2": "https://www.toutiao.com"
}
}
}
了解更多 lighting-plugin-proxy 插件的信息,请点击这里。
FAQs
> lighting-plugin-proxy 支持为 light 工程的请求配置代理地址。
We found that lighting-plugin-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
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.