node 代理服务器防止被封ip

在axios请求中
	axios.get(url,{  
			proxy: {
		    host: '127.0.0.1',
		    port: 9000,
		    auth: : {
		    //如果有权限验证,输入账户密码
		      username: 'mikeymike',
		      password: 'rapunz3l'
		    }
		  }
  }).then...
发布了550 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_43294560/article/details/104834059