Package io.ktor.server.plugins.cors

Types

Link copied to clipboard
class CORSConfig

A configuration for the io.ktor.server.plugins.cors.routing.CORS plugin.

Properties

Link copied to clipboard
val CORS: <ERROR CLASS><CORSConfig>

A plugin that allows you to configure handling cross-origin requests. This plugin allows you to configure allowed hosts, HTTP methods, headers set by the client, and so on.

Link copied to clipboard
var CORSConfig.maxAgeDuration: Duration

Duration to tell the client to keep CORS options.