Skip to content

Commit

Permalink
Add cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
yostane committed Aug 26, 2024
1 parent b812dc1 commit 2c86525
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ fun Application.configureHTTP() {
}
install(CORS) {
allowMethod(HttpMethod.Options)
anyHost() // @TODO: Don't do this in production if possible. Try to limit it.
allowHeader(HttpHeaders.ContentType)
allowHost("verbal-paula-yostane-5911cad1.koyeb.app", schemes = listOf("https"))
allowHost("localhost:9091")
}
}

0 comments on commit 2c86525

Please sign in to comment.