captncraig / cors

Cross Origin Resource Sharing middleware for go
MIT License
19 stars 19 forks source link

If allowed headers is * returns requested headers instead of * #12

Closed michele closed 6 years ago

michele commented 7 years ago

Even though the standard allows us to use * in Access-Control-Allow-Headers, most clients seem not to support this.

The way to actually allow any header, is to set Access-Control-Allow-Headers to match Access-Control-Request-Headers and this PR reflects this.

Hope it's worthy of a merge.