mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
feat: Only allow requests from HTTPs
This commit is contained in:
parent
87174eadd6
commit
a6d7da1205
@ -22,10 +22,7 @@ fun Application.configureHTTP() {
|
|||||||
allowCredentials = true
|
allowCredentials = true
|
||||||
|
|
||||||
configurationRepository.corsAllowedHosts.forEach { host ->
|
configurationRepository.corsAllowedHosts.forEach { host ->
|
||||||
allowHost(
|
allowHost(host = host, schemes = listOf("https"))
|
||||||
host = host,
|
|
||||||
schemes = listOf("http", "https"),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user