How to hide a ajax Request from Web Browser's

2020-04-10 01:55发布

The Browser's web console Network Tab shows all the ajax request with the server response. 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.

1条回答
▲ chillily
2楼-- · 2020-04-10 02:00

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.

查看更多
登录 后发表回答