14 lines
328 B
Kotlin
14 lines
328 B
Kotlin
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)
|
|
header(HttpHeaders.Authorization)
|
|
}
|
|
} |