Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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.

like image 984
user1422892 Avatar asked Mar 18 '23 20:03

user1422892


1 Answers

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.

like image 68
MrCode Avatar answered Apr 02 '23 10:04

MrCode