Skip to content

Commit

Permalink
Fix for CORS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Oct 21, 2024
1 parent f5fd318 commit 609a15a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Test / fork := true
ThisBuild / licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")))
ThisBuild / organization := "org.mbari"
ThisBuild / organizationName := "MBARI"
ThisBuild / scalaVersion := "3.3.3"
ThisBuild / scalaVersion := "3.5.1"
ThisBuild / startYear := Some(2021)
// ThisBuild / version := "0.0.1"
ThisBuild / versionScheme := Some("semver-spec")
Expand Down
12 changes: 6 additions & 6 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ object Dependencies {

lazy val auth0 = "com.auth0" % "java-jwt" % "4.4.0"

private val circeVersion = "0.14.9"
private val circeVersion = "0.14.10"
lazy val circeCore = "io.circe" %% "circe-core" % circeVersion
lazy val circeGeneric = "io.circe" %% "circe-generic" % circeVersion
lazy val circeParser = "io.circe" %% "circe-parser" % circeVersion

lazy val jansi = "org.fusesource.jansi" % "jansi" % "2.4.1"
lazy val jasypt = "org.jasypt" % "jasypt" % "1.9.3"
lazy val logback = "ch.qos.logback" % "logback-classic" % "1.5.6"
lazy val logback = "ch.qos.logback" % "logback-classic" % "1.5.11"
lazy val methanol = "com.github.mizosoft.methanol" % "methanol" % "1.7.0"
lazy val munit = "org.scalameta" %% "munit" % "1.0.1"
lazy val munit = "org.scalameta" %% "munit" % "1.0.2"
lazy val picocli = "info.picocli" % "picocli" % "4.7.6"

lazy val slf4jVersion = "2.0.16"
lazy val slf4jApi = "org.slf4j" % "slf4j-api" % slf4jVersion
lazy val slf4jJul = "org.slf4j" % "jul-to-slf4j" % slf4jVersion

private val tapirVersion = "1.11.1"
private val tapirVersion = "1.11.7"
lazy val tapirStubServer = "com.softwaremill.sttp.tapir" %% "tapir-sttp-stub-server" % tapirVersion
lazy val tapirSwagger = "com.softwaremill.sttp.tapir" %% "tapir-swagger-ui-bundle" % tapirVersion
lazy val tapirCirce = "com.softwaremill.sttp.tapir" %% "tapir-json-circe" % tapirVersion
lazy val tapirCirceClient = "com.softwaremill.sttp.client3" %% "circe" % "3.9.8"
lazy val tapirCirceClient = "com.softwaremill.sttp.client3" %% "circe" % "3.10.1"
lazy val tapirVertx = "com.softwaremill.sttp.tapir" %% "tapir-vertx-server" % tapirVersion


lazy val typesafeConfig = "com.typesafe" % "config" % "1.4.3"
lazy val zio = "dev.zio" %% "zio" % "2.1.7"
lazy val zio = "dev.zio" %% "zio" % "2.1.11"
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.1
sbt.version=1.10.3
4 changes: 2 additions & 2 deletions src/main/scala/org/mbari/raziel/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ object Main:
val router = Router.router(vertx)

// Add CORS
val corsHandler = CorsHandler.create("*")
router.route().handler(corsHandler)
// val corsHandler = CorsHandler.create("*")
// router.route().handler(corsHandler)

// Add Tapir endpoints
val interpreter = VertxFutureServerInterpreter()
Expand Down

0 comments on commit 609a15a

Please sign in to comment.