Add ContentType header to CORS feature
This commit is contained in:
parent
03a190ddd5
commit
5b079999bb
@ -3,9 +3,11 @@ package be.vandewalleh.features
|
||||
import io.ktor.application.Application
|
||||
import io.ktor.application.install
|
||||
import io.ktor.features.CORS
|
||||
import io.ktor.http.HttpHeaders
|
||||
|
||||
fun Application.corsFeature() {
|
||||
install(CORS) {
|
||||
anyHost()
|
||||
header(HttpHeaders.ContentType)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user