admin管理员组

文章数量:1320661

I am getting data from my mongoDB using nodejs server and displaying it on my react home page. The issue is all my data has been showing into the network tab of google chrome devtools. I just don't wanna let users to read all these data.

Is this possible? How? OR Is there any other way to do same things?

Please tell me how to hide data from network.

Here is the screenshots :

screenshot 1

screenshot 2

I am getting data from my mongoDB using nodejs server and displaying it on my react home page. The issue is all my data has been showing into the network tab of google chrome devtools. I just don't wanna let users to read all these data.

Is this possible? How? OR Is there any other way to do same things?

Please tell me how to hide data from network.

Here is the screenshots :

screenshot 1

screenshot 2

Share Improve this question asked Jun 20, 2020 at 12:22 yash patelyash patel 111 gold badge2 silver badges5 bronze badges 1
  • 3 If you don’t want users to read it, don’t sent it to the browser.. – MikeOne Commented Jun 20, 2020 at 12:29
Add a ment  | 

2 Answers 2

Reset to default 3

Unfortunately for you, there's no way to hide network requests from Chrome Network Log.

Even if you could, it'd be still possible to use network analyzer tools such as Fiddler and Wireshark to log all the traffic between your puter and the Internet.

There are few ways to "hide" them or actually make them less obvious to find;

Make a JSONP request, they are not real AJAX calls, as they do not use the XMLHttpRequest object. They simply inject a script tag in the dom, the requests are still visible in the network tab.

You can also clear console via script among the lines of

function clearConsole() { 
    if(window.console || window.console.firebug) {
       console.clear();
    }
}

本文标签: javascriptHow to hide XHR requests from network tab in the browserStack Overflow