feat: Only allow requests from HTTPs

This commit is contained in:
oSumAtrIX
2024-10-02 00:42:07 +02:00
parent 87174eadd6
commit a6d7da1205

View File

@@ -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"),
)
} }
} }