Answer the question
In order to leave comments, you need to log in
How to make an ajax request to 1C with authorization?
I'm trying to make an ajax request to 1C. Nevertheless on all attempts and variants I receive errors.
axios({
method: "get",
url:
"http://localhost/bespalov_trade/hs/api/GetInfoByTel?tel=9999999999",
auth: {
username: "web",
password: "123"
}
})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question