gin-contrib / cors

Official CORS gin's middleware
https://gin-gonic.github.io/gin/
MIT License
1.79k stars 186 forks source link

add support for wildcard cors origin #24

Closed mattbaird closed 7 years ago

mattbaird commented 7 years ago

you currently can't use the wildcard cors origin, it must start with either http:// or https://

codecov-io commented 7 years ago

Codecov Report

Merging #24 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #24   +/-   ##
======================================
  Coverage    90.9%   90.9%           
======================================
  Files           3       3           
  Lines         121     121           
======================================
  Hits          110     110           
  Misses         11      11
Impacted Files Coverage Δ
cors.go 65.51% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cf4846e...f433356. Read the comment docs.

appleboy commented 7 years ago

also fix #23