February 27, 2018

Golang Configure Cors REST API

Intro I recently ran into some CORS issues while creating a REST API in Go. Because I spend the bulk of my time programming in JavaScript, I had at first assumed there would be an easy catch all CORS package that I could configure and never think about again. Then I remembered that part of Go’s beauty is it’s standard library, so I decided to solve the problem by myself, and while doing so learned a lot about HTTP and CORS. Read more