Skip to content

Commit

Permalink
Change to accept all methods and any host
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Jan 4, 2024
1 parent 525d4a0 commit 6f821d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/kotlin/fr/shikkanime/plugins/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ fun Application.configureHTTP() {
}
}
install(CORS) {
allowMethod(HttpMethod.Options)
allowMethod(HttpMethod.Put)
allowMethod(HttpMethod.Delete)
allowMethod(HttpMethod.Patch)
HttpMethod.DefaultMethods.forEach { allowMethod(it) }
allowCredentials = true
allowHeader(HttpHeaders.Authorization)
anyHost()
}
install(StatusPages) {
exception<Throwable> { call, cause ->
Expand Down

0 comments on commit 6f821d1

Please sign in to comment.