cors
cors copied to clipboard
Consider archiving this repository, and pointing folks to github.com/rs/cors instead.
This package appears as the top search result on Google for gin gonic cors
, but has a number of trouble spots that make it hard to use correctly the first time. I'm sure there's a good reason for the design, but the README doesn't make its gotchas obvious.
- The Origin header issue
- The explicit OPTIONS handler issue
- The "does not work at the group level" issue
Instead, consider pointing users to https://github.com/rs/cors and its gin-gonic example.
I spent two hours trying to get his package to work. Went over to rs/cors and got it working in 1 minute.
@politician thank you for the https://github.com/rs/cors alternative!
I spent two hours trying to get his package to work. Went over to rs/cors and got it working in 1 minute.
Same.