简体   繁体   English

如何从 Web 浏览器的控制台隐藏 ajax 请求

[英]How to hide a ajax Request from Web Browser's Console

The Browser's web console Network Tab shows all the ajax request with the server response.浏览器的 Web 控制台网络选项卡显示所有带有服务器响应的 ajax 请求。 How Can I prevent ?我该如何预防? is it possible to do ?有可能吗?

The reason is because the ajax response shows all the users data, that's why I'm trying to hide the response.原因是因为 ajax 响应显示了所有用户数据,这就是我试图隐藏响应的原因。

It's not possible and even if it was, it would be an undesirable "solution" because the data can be seen using other methods.这是不可能的,即使是这样,这也是一个不受欢迎的“解决方案”,因为可以使用其他方法查看数据。

The solution is to revise your code to ensure you only send data to the user that they are authorised to see.解决方案是修改您的代码,以确保您只将数据发送给他们有权查看的用户。 Don't dump all user data in the AJAX response.不要在 AJAX 响应中转储所有用户数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM