Open
Description
I've followed this tutorial to build a KMM app. Everything works fine when the app is running on the local server but the POST method returns Error 403 when deployed on Heroku. This is the function on the Client side.
val endpoint = window.location.origin // only needed until ktorio/ktor#1695 is resolved
val jsonClient = HttpClient {
install(JsonFeature) { serializer = KotlinxSerializer() }
}
suspend fun sendfeedback(userinfo: UserInfo) {
jsonClient.post<Unit>(endpoint + UserInfo.path) {
contentType(ContentType.Application.Json)
body = userinfo
}
}
Metadata
Metadata
Assignees
Labels
No labels