ideal-postcodes / postcodes.io

UK postcode & geolocation API, serving up open data
https://postcodes.io
MIT License
1.24k stars 249 forks source link

How to use axios? #1167

Closed kossa closed 1 year ago

kossa commented 1 year ago

Hello,

I'm using axios to get data, I'm getting this error:

image

cblanc commented 1 year ago

You need to query a valid url, then a CORS header will be provided

E.g. https://api.postcodes.io/postcodes/NN180ES

image