Options

io.github.edadma.apion.CorsMiddleware.Options
case class Options(origin: Origin, methods: Set[String], allowedHeaders: Set[String], exposedHeaders: Set[String], credentials: Boolean, maxAge: Option[Int], preflightSuccessStatus: Int, optionsSuccessStatus: Int)

Configuration options for CORS middleware

Value parameters

allowedHeaders

Allowed request headers

credentials

Allow credentials (cookies, authorization headers)

exposedHeaders

Headers exposed to the client

maxAge

How long preflight results can be cached (seconds)

methods

Allowed HTTP methods

optionsSuccessStatus

Status code for successful OPTIONS requests

origin

Origin configuration - can be "*", a string, or a list of allowed origins

preflightSuccessStatus

Status code for successful preflight requests

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product