allow all origins

This commit is contained in:
moehreag 2024-06-17 16:18:50 +02:00
parent ddd7bb6ba3
commit 8427003d37

View file

@ -6,6 +6,7 @@ import io.ktor.server.plugins.cors.routing.*
fun Application.configureHTTP() {
install(CORS) {
anyHost()
allowMethod(HttpMethod.Options)
allowMethod(HttpMethod.Put)
allowMethod(HttpMethod.Delete)