JSONP / CORS

JSONP is deprecated since years. You should no longer rely on this method to make cross-domain requests. Ipregistry supports Cross-Origin Resource Sharing (CORS), a modern alternative that is widely supported by browsers, saner and cleaner.

By default, the Ipregistry API allows all origins for CORS.

Filtering Origins by API key

You can filter origins, and control which one is allowed to call the Ipregistry API with your key, directly from the Ipregistry dashboard:

  1. Open your dashboard.
  2. Click on "API Keys" in the left menu.
  3. Click on "Edit" for the key you want to filter origins.
  4. In the "Origins" section, select "Filter by origins" for the dropdown option.
  5. Enter the URL prefix of the origins that are allowed:

    Filtering Origins by API key

  6. Save your changes.
The Ipregistry API also supports restricting usage of API keys by IP addresses. Follow the same as above in the "IP Addresses" section on your dashboard.