Skip to content

Commit

Permalink
Added allowed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
LotuxPunk committed May 20, 2024
1 parent bac7c63 commit 2c69659
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/be/vandeas/plugins/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fun Application.configureHTTP() {
allowMethod(HttpMethod.Put)
allowMethod(HttpMethod.Get)
allowHeader(HttpHeaders.Authorization)
anyHost() // @TODO: Don't do this in production if possible. Try to limit it.
allowHeader(HttpHeaders.ContentType)
allowHeader(HttpHeaders.Accept)
allowHeader(HttpHeaders.AccessControlAllowOrigin)
anyHost()
}
}

0 comments on commit 2c69659

Please sign in to comment.