Fix for authentication due to url mismatch in XML/JSON