HSTS

val HSTS: <ERROR CLASS><HSTSConfig>

A plugin that appends the Strict-Transport-Security HTTP header to every response.

The HSTS configuration below specifies how long the client should keep the host in a list of known HSTS hosts:

install(HSTS) {
maxAgeInSeconds = 10
}

You can learn more from HSTS.