Today I've discovered a strange thing. When I create an XHR request in Chrome to the REST API, it returns JSON data.
However, the same request in Firefox returns XML data. If I open the URL directly in Chrome, it's XML as well.
I couldn't find anything about this in the REST documentation of Magento 2. So how can I set my XHR request the return always JSON?