
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
wl-stations-http
Advanced tools
用于 vue3 - vite
注意,目前仅支持 post 和 get 方法
//在控制台输入命令安装
npm i wl-stations-http
// 构建http对象
let http = new Http({
baseUrl: "", //请求基础路径
serviceName: " ", //自服务的名称
rpcUrl: " ", // psc节点的地址,不填则默认为 https://psc-mainnet.polysmartchain.com
content: " ",
signature: " ",
});
http
.post(`proposal/pip/proposal`, {
pageNum: 1,
pageSize: 10,
})
.then((res) => {
console.log("响应结果", res);
});
// or
let { data: res } = await http.post(`proposal/pip/proposal`, {
pageNum: 1,
pageSize: 10,
});
// 添加请求拦截器
http.addRequestInterceptor((config) => {
/*
let config = {
method: "POST",
headers: { "Content-Type": "application/json", ...headers },
body: JSON.stringify(params),
url: await this.initUrl(path),
};
*/
if (config.url.includes("/api/points")) {
config.baseURL = "https://burnrate.polysmartchain.com";
}
if (token) {
config.headers = {
authorization: token,
};
}
return config;
});
//响应拦截器 参数同上
// http.addResponseInterceptor(config=>{});
FAQs
用于 vue3 - vite
We found that wl-stations-http demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.