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
- Alphabetic
- By Inheritance
Inherited
- CORSConfig
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All