Skip to content

Commit 080e2e5

Browse files
committed
fix: Allow more necessary HTTP methods for CORS
1 parent 8ff1bbd commit 080e2e5

File tree

1 file changed

+2
-0
lines changed
  • src/main/kotlin/app/revanced/api/configuration

1 file changed

+2
-0
lines changed

src/main/kotlin/app/revanced/api/configuration/HTTP.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ fun Application.configureHTTP() {
1414
val configurationRepository = get<ConfigurationRepository>()
1515

1616
install(CORS) {
17+
HttpMethod.DefaultMethods.minus(HttpMethod.Options).forEach(::allowMethod)
18+
1719
allowHeader(HttpHeaders.ContentType)
1820
allowHeader(HttpHeaders.Authorization)
1921

0 commit comments

Comments
 (0)