In my angular application if I go to dev tools network tab I will be able to see the response and request ing from the back end. Do anyone know how to hide or mask this data, is this possible if I do the server-side rendering?
In my angular application if I go to dev tools network tab I will be able to see the response and request ing from the back end. Do anyone know how to hide or mask this data, is this possible if I do the server-side rendering?
Share Improve this question asked Mar 1, 2019 at 6:52 bharath bhushanbharath bhushan 2171 gold badge4 silver badges11 bronze badges 15- why do you want to hide?what kind of data are you requesting – Madhawa Priyashantha Commented Mar 1, 2019 at 6:54
- 2 @KrishnaPrashatt no but it may be a xy problem.meta.stackexchange./questions/66377/what-is-the-xy-problem – Madhawa Priyashantha Commented Mar 1, 2019 at 6:57
- 2 It's pointless to do this, and anyway you can't. If the data is flowing to and from your web application then it's visible to the user potentially. That's just how the web works. Half of it will be data they themselves have entered anyway. If you run your site on HTTPS then the data will private between the browser and the server. I don't know what problem you think you will solve with this idea? Can you explain what the issue is? – ADyson Commented Mar 1, 2019 at 6:57
- 1 Don't send any data to the client that you don't trust the client to know. – CertainPerformance Commented Mar 1, 2019 at 6:58
- 1 @bharathbhushan in case use https to avoid man in the middle kind attacks.there is no point of hiding it.if some want they will find it using another tool – Madhawa Priyashantha Commented Mar 1, 2019 at 7:16
1 Answer
Reset to default 10Requests will be shown.
This cannot be stopped, the application is making requests and this will be logged to the network tab by the browser, as mentioned in the ments, if there are security concenrns you should be handling this a different way. Do not send data to the client that they should not be allowed access to in the first place.
To try and ensure security run over HTTPS on the off chance to data gets intercepted, that way it will not be usable data. Most data, as mentioned in the ments, will be provided by the user. Meaning in should not need to be hidden within the network tab.
Worst case scenario, someone physically sits at their puter and reads what is in the network tab, but this is a scenario that cant be accounted for when developing applications. You could base64
encode data that is being sent to and from so it is less readable to anyone who should see the network tab. Here are some resources to have a look through related to the question.
HTTPS summerised // base64 encode // Angular's security section