diff --git a/build.sbt b/build.sbt index 1a952e3..f22eeb4 100644 --- a/build.sbt +++ b/build.sbt @@ -5,7 +5,7 @@ ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" val v = new { val circe = "0.14.1" val ciris = "2.1.1" - val http4s = "0.23.1" + val http4s = "0.23.2" val odin = "0.12.0" val tapir = "0.19.0-M7" val munit = "0.7.29" diff --git a/src/main/scala/app/Api.scala b/src/main/scala/app/Api.scala index 118b0b8..bcddf0c 100644 --- a/src/main/scala/app/Api.scala +++ b/src/main/scala/app/Api.scala @@ -45,7 +45,7 @@ object Api { val routes: List[HttpRoutes[F]] = apis.map(_.routes) ++ List(swaggerUi, redirectRootToDocs) - CORS(routes.reduce(_ <+> _)).orNotFound + CORS.policy(routes.reduce(_ <+> _)).orNotFound } }