Proxy redirect to 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:

  from = "/*"
  to = "/index.html"
  status = 200

  from = "/postalCodeSearchJSON"
  to = ""
  status = 200
  force = true

And this is my instance

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: