如何保护AngularJS $ http.post数据? [英] How to secure AngularJS $http.post data?

查看:169
本文介绍了如何保护AngularJS $ http.post数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来到了一个安全问题,而这样做是由我的应用程序的后台收到$ http.post请求。我可以看到所有正在使用的Firefox例如萤火发送的数据。

I came to a security concern while doing $http.post requests that are received by the backend of my app. I can see all the data that is being sent using for example firebug in Firefox.

是第三方能够嗅出这个数据?如果有人闻密码,当有人注册一个新帐户,这将是灾难性的。

Are third parties able to sniff this data? It would be disastrous if someone sniffed the password when someone registers a new account.

有没有一种办法,以确保我AngularJS的前端,从而使他人将无法在POST请求盗取数据?

Is there a way to secure my AngularJS front-end so that someone won't be able to steal the data in the POST request?

任何意见,将AP preciated:)

Any advice will be appreciated :)

推荐答案

没有JavaScript可以保护您的密码。使用SSL。
或者更好的是,使用服务用户已经注册到像谷歌,Facebook或任何OpenID的/ oAtuh提供商,所以我们并不需要去想过创造一个新的独特的密码,以核实电子邮件的恼人过程:)

No javascript can secure your password. Use SSL. Or better yet, use services your user are already registered to like Google, Facebook or any openID/oAtuh provider so we don't need to go thought the annoying process of creating a new unique password verify the email :)

这篇关于如何保护AngularJS $ http.post数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆