strapi/packages
Franklin Lee 9c6b460c7f
feat(middleware-cors): allow setting cors origin with a method (#8545)
* feat(middleware-cors): allow setting cors origin with a method

Signed-off-by: Franklin Lee <lee.frankliny@gmail.com>

* updated method to take in ctx

Signed-off-by: Franklin Lee <lee.frankliny@gmail.com>

* removed if else conditional

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-01-12 14:52:55 +01:00
..