final case class CORSConfig(anyOrigin: Boolean, allowCredentials: Boolean, maxAge: Long, anyMethod: Boolean = true, allowedOrigins: (String) ⇒ Boolean = _ => false, allowedMethods: Option[Set[String]] = None, allowedHeaders: Option[Set[String]] = ..., exposedHeaders: Option[Set[String]] = Set("*").some) extends Product with Serializable

CORS middleware config options. You can give an instance of this class to the CORS middleware, to specify its behavior

Annotations
@deprecated
Deprecated

(Since version 0.21.27) Deficient. See https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6.

Source
CORS.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CORSConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CORSConfig(anyOrigin: Boolean, allowCredentials: Boolean, maxAge: Long, anyMethod: Boolean = true, allowedOrigins: (String) ⇒ Boolean = _ => false, allowedMethods: Option[Set[String]] = None, allowedHeaders: Option[Set[String]] = ..., exposedHeaders: Option[Set[String]] = Set("*").some)

Value Members

  1. val allowCredentials: Boolean
  2. val allowedHeaders: Option[Set[String]]
  3. val allowedMethods: Option[Set[String]]
  4. val allowedOrigins: (String) ⇒ Boolean
  5. val anyMethod: Boolean
  6. val anyOrigin: Boolean
  7. val exposedHeaders: Option[Set[String]]
  8. val maxAge: Long