ant0ine / go-json-rest

A quick and easy way to setup a RESTful JSON API
https://ant0ine.github.io/go-json-rest/
MIT License
3.51k stars 381 forks source link

Wildcard CORS method and/or headers #208

Closed arkq closed 2 years ago

arkq commented 7 years ago

In order to allow any method or header in the CORS preflight request, one might use wildcard string ("*") for the AllowedMethods and/or AllowedHeaders option during the CorsMiddleware initialization.