feat: Only allow requests from HTTPs

This commit is contained in:
oSumAtrIX 2024-10-02 00:42:07 +02:00
parent 87174eadd6
commit a6d7da1205
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

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