TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mohsin Arif
313
6k
137.2k
API does not respond?
Dec 31 2019 5:45 AM
hello guys.
i have a issue, i have a restricted api which is only executed through permitted PC (IPs) . ii integrated in my application thats fine running on server i hae hosted . but when i hit through client machine api not respond. i use ajax call to get response.
i think there is isssue to hit api on permitted IPs but client machine's IPs is not permitted. so what can i do for fix this issue...
$.ajax({
type: "GET",
headers: {
"Authorization": token
,
"Access-Key": accessKey,
},
url: APiUrl,
success: function () {
$('.preloader').fadeOut('slow');
$('#close').click();
$('#divHide').show();
},
error: function () {
$('.preloader').fadeOut('slow');
$('#close').click();
$.toaster({ priority: "danger", title: "oooppss!", message: "API server is not responding at the moment please try again Later thank you." });
},
}).done(function (data) {
// response populate in datatable
}
Reply
Answers (
1
)
Do both $.ajax and $http use XML HttpRequest internally?
Modalextender popup