https://kotlinlang.org logo
#ktor
Title
# ktor
g

grigala

07/28/2021, 9:52 PM
Copy code
install(CORS) {
        header(HttpHeaders.Range)
        header(HttpHeaders.XForwardedProto)
        header(HttpHeaders.AccessControlRequestHeaders)
        header("x-csrf-token")
        header("Authorization")
        anyHost()
        allowCredentials = true
        method(<http://HttpMethod.Post|HttpMethod.Post>)
        method(HttpMethod.Get)
        method(HttpMethod.Put)
        method(HttpMethod.Delete)
        method(HttpMethod.Head)
        method(HttpMethod.Options)
    }
a

Aleksei Tirman [JB]

07/29/2021, 10:09 AM
Could you please share an example of a request you make?
3 Views