How to disable XHR messages from loading in production

4

I have a system developed in Angular language in version 4. The system that generates application build in production is the webpack. The following starter is used as the base: angular 4 webpack starter The system is finished, but has the following problem: XHR messages are appearing during calls and I want them to be disabled in production to hide the calls that the application makes.

    
asked by anonymous 04.10.2017 / 15:35

1 answer

1

Actually, this is a Chrome console rather than Angular 4.

To disable it, open the developer tools on the console tab, click on the options (gear) and uncheck the LogXMLHttpRequests option.

Remembering that it is not possible to deny the browser the ability to save these requests logs.

    
04.10.2017 / 15:45