cors icon indicating copy to clipboard operation
cors copied to clipboard

Add "Access-Control-Allow-Origin" header to AllowHeaders

Open santosh opened this issue 3 years ago • 0 comments

When client sends Access-Control-Allow-Origin, server must respond with the same domain(s). If not done, preflight response fails.

With this change, AllowHeaders slice has Access-Control-Allow-Origin present, which does nod need any additional configuration and works out of the box on cors.Default().

This is a fix to #84.

santosh avatar Oct 03 '22 13:10 santosh