SecurityMiddleware

io.github.edadma.apion.SecurityMiddleware

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Options(contentSecurityPolicy: Boolean, cspDirectives: Map[String, String], crossOriginEmbedderPolicy: Boolean, crossOriginOpenerPolicy: Boolean, crossOriginResourcePolicy: Boolean, dnsPrefetchControl: Boolean, expectCt: Boolean, expectCtMaxAge: Int, expectCtEnforce: Boolean, frameguard: Boolean, frameguardAction: String, hsts: Boolean, hstsMaxAge: Int, hstsIncludeSubDomains: Boolean, hstsPreload: Boolean, ieNoOpen: Boolean, noSniff: Boolean, originAgentCluster: Boolean, permittedCrossDomainPolicies: String, referrerPolicy: Boolean, referrerPolicyDirective: String, xssFilter: Boolean, xssFilterMode: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def api(): Handler

Creates middleware configured for API servers

Creates middleware configured for API servers

Attributes

def apply(options: Options): Handler

Creates middleware with only essential security headers enabled

Creates middleware with only essential security headers enabled

Attributes