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
2 Answers
Reset to default 3Unfortunately 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
版权声明:本文标题:javascript - How to hide XHR requests from network tab in the browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742064232a2418736.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论