Skip to content

Commit

Permalink
fix: Allow more necessary HTTP methods for CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 30, 2024
1 parent 8ff1bbd commit 080e2e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/app/revanced/api/configuration/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ fun Application.configureHTTP() {
val configurationRepository = get<ConfigurationRepository>()

install(CORS) {
HttpMethod.DefaultMethods.minus(HttpMethod.Options).forEach(::allowMethod)

allowHeader(HttpHeaders.ContentType)
allowHeader(HttpHeaders.Authorization)

Expand Down

0 comments on commit 080e2e5

Please sign in to comment.