例如下面的代码post的数据,是不是返回的数据是可以加密的。通过console.log也看不到
this.$http({
url: 'http://localhost/wang/index.php/Admin/Goods/createProcess',
method: 'POST',
emulateJSON: true,
data: {
cid: this.cid,
name: this.goodsname,
sort: this.sort,
price: this.price,
desc: this.desc
}
}).then(function(response) {
console.log(response.data);
}, function(response) {
});
肯定不是啊,到达客户端的时候已经不是加密的数据了,使用 https 可以有效防止别人使用抓包工具获得你的报文的信息,因为 https 在通信的时候是加密的,http 直接抓包就能获得明文信息。而使用 https 获得的是一串乱码。