allow all origins
This commit is contained in:
parent
ddd7bb6ba3
commit
8427003d37
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue