Processing
 

Prevent Google Chrome Log XMLHttpRequest

24/02/2014 14:04#1

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

Is it possible to prevent Google Chrome from logging XMLHttpRequests?

I don't mean to disable the function on Console, but my code is not letting Google Chrome show the URL to the user.


[Update] I am offering a bounty to find out how to suppress messages like

XHR Loaded (controllers.js - 200 OK - 12.728999950923026ms - 103.516KB) 
24/02/2014 14:26Top#2

Joined at: 11 months ago

Post: 7

Thank: 0

Thanked: 0

The logging entry in chrome's console is a behavior of chrome when any HTTP request is handled, not a problem with jQuery or ajax(XMLHttpRequest), even an <img> or <link> tag could cause this issue.

Give This a try though

18/01/2016 13:54Top#3

Boris

Member

Joined at: 12 months ago

Post: 37

Thank: 0

Thanked: 0

You can turn this off in the Developer Console settings. Click the three dots in the upper right hand corner of the tools, go to settings and disable Log XHR requests

18/09/2016 06:08Top#4

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

disable Log XHR requests from Console settings.

16/09/2016 10:36Top#5

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

I don't think this is possible, because this is a setting which the end user has to set in the browser. What you can do is make a XMLHttpRequest to a PHP script which serves your desired content, instead of making the call directly. This way the end user will see only the URL to the PHP script in the console.

18/09/2016 07:24Top#6

DrEarnest

Member

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

Open Developer console. Open settings from kebab menu. Under Console, there is an option to disable logging XMLHttpRequest.

Similar articles

Chrome, THREE.js: Cross-origin image load denied

5 years ago - Reply: 5 - Views: 271

Prevent Google Chrome Log XMLHttpRequest

3 years ago - Reply: 5 - Views: 277

How can I include ChromeDriver in a JAR?

3 years ago - Reply: 3 - Views: 83

Chrome geolocation not working on any site

3 years ago - Reply: 1 - Views: 49

wrong borders' width in android browser

3 years ago - Reply: 4 - Views: 207

Uncaught SyntaxError: Unexpected token < On Chrome

3 years ago - Reply: 10 - Views: 472

Flashdata not getting cleared in Codeigniter

4 years ago - Reply: 5 - Views: 58

Illegal access Javascript error in Chrome

3 years ago - Reply: 1 - Views: 53

ng-repeat not updating in Chrome

3 years ago - Reply: 1 - Views: 82

Applying border to a checkbox in Chrome

4 years ago - Reply: 2 - Views: 119

open browser plugin using access vba

3 years ago - Reply: 1 - Views: 26

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re