labstack / echo

High performance, minimalist Go web framework
https://echo.labstack.com
MIT License
29.94k stars 2.23k forks source link

CORS middleware should compile allowOrigin regexp at creation #2709

Closed aldas closed 3 hours ago

aldas commented 17 hours ago

This change preserves previous behavior - invalid patterns are just ignored.

we can not add panics as this would cause runtime unrecovered panics (i.e. some people very angry as their applications crash at prod)

Reported by https://github.com/labstack/echo/issues/2708