It's actually a quirk in Chrome, not the JavaScript library. Here's the fix:
To prevent the message appearing and also allow chrome to render the response nicely as JSON in the console, append a query string to your request URL.
e.g
var xhr_object = new XMLHttpRequest();
var url = 'mysite.com/'; // Using this one, Chrome throws error
var url = 'mysite.com/?'; // Using this one, Chrome works
xhr_object.open('POST', url, false);