API CORS issues
API CORS issues
I'm playing around with a simple page for alternative way of displaying turf where I can actually see zones (bad eye-sight creeping up). When I tested a few moths ago I could get zones from the API without turning off CORS, but now it does not work any more. Is this by design and I need to cache the zones myself or am I supposed to be able to fetch zones from the API in my javascript app?
Turfname is EQ
Re: API CORS issues
You probably need something in between to relay or proxy your requests so you can set proper CORS headers. For https://turf.mitt.land/ I used Varnish Cache as a proxy.
@LordNorth - Creator of turfmedals.com. Supporters: embeoo, Sven_R, LeiLar, DasHuhn, Hjulpynt, eddyueue, Mr__Noodle, ojarnstr, DXP2K, JoasK, AJHB, FlygarAlex, ESOCWalter, Skäggfar, Insomnia, Game-Over, DT, HakSme, KingenMalmö, harald_legner