parseHeaders

external fun parseHeaders(headers: JsAny?)

The headers property also supports a JSON string, while the manager only accepts an object, so strings are parsed. An invalid JSON string parses to undefined, which throws when the request is configured.