atadnmz
atadnmz

Reputation: 311

How to prevent show xml content in Chrome's devtool?

I got encrypted data from backend and decrytped this data in frontend(reactjs). Everything works fine but I can reach the data from google Develeoper Tools network section(shown in below). These data can be data:image/svg+xml;base64, "data:image/jpeg;base64, data:image/png;base64 formats and I need to prevent accessibility of real image from chrome since when I double clicked I am able to reach the image and encryption make no sense.

Is there any proper way to handle this problem?

network section

Thanks in advance

Upvotes: 1

Views: 174

Answers (1)

kjhughes
kjhughes

Reputation: 111621

You cannot both trust a client and not trust a client with data.

As long as the client code running in the browser has access to the unencrypted data to present or compute against it, the unencrypted data is subject to observation.

There neither is nor can be a fool-proof work-around.

Upvotes: 3

Related Questions