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() {
|
fun Application.configureHTTP() {
|
||||||
install(CORS) {
|
install(CORS) {
|
||||||
|
anyHost()
|
||||||
allowMethod(HttpMethod.Options)
|
allowMethod(HttpMethod.Options)
|
||||||
allowMethod(HttpMethod.Put)
|
allowMethod(HttpMethod.Put)
|
||||||
allowMethod(HttpMethod.Delete)
|
allowMethod(HttpMethod.Delete)
|
||||||
|
|
Loading…
Reference in a new issue