go-chi/cors is a fork of github.com/rs/cors that
provides a net/http compatible middleware for
performing pref-light CORS checks on the server
side. These headers are required for using the
browser native Fetch API.
This middleware is designed to be used as a
top-level middleware on the chi router.
Applying with within a r.Group() or using With()
will not work without routes matching OPTIONS added.