Comments (1)
On Mar 19, 2014, at 4:27 PM, Sandeep Arneja [email protected] wrote:
Are there any plans on supporting CORS requests?
It's already there for OPTION requests:
~ $ curl -vX OPTIONS freegeoip.net/json/
> OPTIONS /json/ HTTP/1.1
> User-Agent: curl/7.30.0
> Host: freegeoip.net
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: X-Requested-With
< Access-Control-Allow-Methods: GET
< Access-Control-Allow-Origin: *
< Content-Type: text/plain
< Date: Wed, 19 Mar 2014 20:31:41 GMT
< Content-Length: 0
JSONP works mostly but it doesn't expose the error event. Occasionally I have some IP's which result in a 404 error response. With JSONP I can't get the error response and therefore don't know why it failed. If i could catch the error then I would mark it as failed and then not look it up the next time.
You should be able to handle 404 normally, see the link below for details:
—
Reply to this email directly or view it on GitHub.
from freegeoip.
Related Issues (20)
- Troubleshooting Let's Encrypt Certificate Failures HOT 3
- support chinese or not? HOT 2
- Change limit not working in Heroku app? HOT 2
- How to deploy and use with php HOT 1
- Maxmind GeoLite2 free database will HOT 1
- Enable CORS on server HOT 2
- Country Flag HTTPS HOT 1
- ipstack return server IP HOT 1
- What subdivision level is region? HOT 1
- Currency not returning by api HOT 1
- whois.verisign-grs.com is timing out HOT 1
- Wrong location against ip addresses HOT 4
- Urgent help for IP Stack Custom Plan
- Incorrect ZIP passed for the Netherlands HOT 1
- SSL issue on production on 3.210.48.126 HOT 4
- link https://status.ipstack.com/ get 404 HOT 1
- cURL error 52: Empty reply from server HOT 4
- freegeoip.app showing wrong info while maxmind is showing correctly
- Incorrect location for 23.247.211.0/24
- I'm going
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freegeoip.