Skip to content

Commit

Permalink
feat: Only allow requests from HTTPs
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 2, 2024
1 parent 87174ea commit a6d7da1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/kotlin/app/revanced/api/configuration/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ fun Application.configureHTTP() {
allowCredentials = true

configurationRepository.corsAllowedHosts.forEach { host ->
allowHost(
host = host,
schemes = listOf("http", "https"),
)
allowHost(host = host, schemes = listOf("https"))
}
}

Expand Down

0 comments on commit a6d7da1

Please sign in to comment.