Skip to content

Commit

Permalink
Merge pull request #399 from Shikkanime/dev
Browse files Browse the repository at this point in the history
Allow ContentType header
  • Loading branch information
Ziedelth committed Apr 20, 2024
2 parents 88920e5 + 7dedeb1 commit f5a7ff6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/fr/shikkanime/modules/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ fun Application.configureHTTP() {
}
}
install(CORS) {
anyHost()
allowHeader(HttpHeaders.Authorization)
allowHeader(HttpHeaders.ContentType)
HttpMethod.DefaultMethods.forEach { allowMethod(it) }
allowCredentials = true
allowHeader(HttpHeaders.Authorization)
anyHost()
}
install(StatusPages) {
exception<Throwable> { call, cause ->
Expand Down

0 comments on commit f5a7ff6

Please sign in to comment.