ipapi-co / api

API for IP address lookup (ipapi.co)

Home Page:https://ipapi.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support cors

jimmywarting opened this issue · comments

so we can make ajax request

@jimmywarting We support CORS, you can check the IP Location API examples. If you are facing a specific issue, please feel free to drop us a message . For quick reference, here are 2 examples using jQuery.

$.getJSON('https://ipapi.co/8.8.8.8/json/', function(data){
  console.log(data)
})

$.ajax({
  url: "https://ipapi.co/json/",
  type: "GET",
  crossDomain: true,
  success: function (resp) {
      console.log(resp);
  },
  error: function (xhr, status) {
      alert("error");
  }
});

Hmm, you are right.

it was blocked by ublock extension for some reason

Any word on how to get by this blockage by "ublock"? we dont want our users to have to disable their extension nor change to another one that works.

@iorobertob : Can you please drop a message to customer support for this.

think the reason why it is blocked is due to ip sniffing (collecting data)
there where severals ip-lookup services that where blocked...