We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710416f commit 6442757Copy full SHA for 6442757
src/main/kotlin/app/revanced/api/configuration/HTTP.kt
@@ -1,6 +1,7 @@
1
package app.revanced.api.configuration
2
3
import app.revanced.api.configuration.repository.ConfigurationRepository
4
+import io.ktor.http.*
5
import io.ktor.server.application.*
6
import io.ktor.server.plugins.*
7
import io.ktor.server.plugins.cors.routing.*
@@ -13,6 +14,11 @@ fun Application.configureHTTP() {
13
14
val configurationRepository = get<ConfigurationRepository>()
15
16
install(CORS) {
17
+ allowHeader(HttpHeaders.ContentType)
18
+ allowHeader(HttpHeaders.Authorization)
19
+
20
+ allowCredentials = true
21
22
configurationRepository.corsAllowedHosts.forEach { host ->
23
allowHost(
24
host = host,
0 commit comments