1

Is there any option to hide an Angular response from API call in the browser network tab like below image data

enter image description here

  • 1
    Does this answer your question? [How to hide data from network tab?](https://stackoverflow.com/questions/54939397/how-to-hide-data-from-network-tab) –  Jan 22 '21 at 09:51
  • 2
    No, there's no way to hide it. If you're trying to keep something secret and safe in a browser, forget it. – Jeremy Thille Jan 22 '21 at 10:12
  • 2
    Network response will be shown there. You can configure your server with https so that communication can be secured. And if you have sensitive data, then use encryption/decryption algorithms to protect it. @aruna-wijethunga – Kshitij Jan 22 '21 at 10:34

1 Answers1

0

This can be achieved with a web worker

I believe this is the desired result:

enter image description here

To achieve this, after making an api call inside a worker, make sure to call worker.terminate() which will evict the content from response

James Ikubi
  • 2,552
  • 25
  • 18