Overcoming CORS issues when developing locally with Gatsby + Netlify Lambda

I spent hours trying to figure out how to bypass a CORS error I encountered when I tried to get my first Gatsby + Netlify Lambda functions development setup to work. My Gatsby was running on http://localhost:3000 and netlify-lambda was running on http://localhost:9000 In the end, I found an article on Gatsby’s website which laid…