Proxy redirect to geonames.org API

I’m trying to set up a proxy redirect to the GeoNames API and I’ve tried to follow examples on here and various posts on the Netlify website but cannot seem to get this working.

My netlify.toml looks as follows:

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

[[redirects]]
  from = "/postalCodeSearchJSON"
  to = "http://api.geonames.org/postalCodeSearchJSON"
  status = 200
  force = true

And this is my instance https://vibrant-pike-a43a20.netlify.com/

I’m really praying this isn’t going to be something to do with the fact that the API isn’t on https and that it’s just something silly I’ve done! It doesn’t look like they have a secure version :frowning_face:

Any help would be really appreciated :heart:

Ah, fixed! I had my redirection rules the wrong way around :see_no_evil:.

Thanks for sharing your solution with the community, @jjenzz. :+1: