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
- }