1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

register cors middleware on iris.Default() function

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-01 14:00:54 +02:00
parent b15d75753c
commit 481332090e
3 changed files with 40 additions and 30 deletions

View File

@@ -28,6 +28,8 @@ The codebase for Dependency Injection, Internationalization and localization and
## Fixes and Improvements
- Register [CORS middleware](middleware/cors) to the Application by default when `iris.Default()` is used instead of `iris.New()`.
- Add [x/jsonx: DayTime](/x/jsonx/day_time.go) for JSON marshal and unmarshal of "15:04:05" (hour, minute, second).
- Fix a bug of `WithoutBodyConsumptionOnUnmarshal` configurator and a minor dependency injection issue caused by the previous alpha version between 20 and 26 February of 2022.