final class CORSConfig extends AnyRef

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. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val allowCredentials: Boolean
  5. val allowedHeaders: Option[Set[String]]
  6. val allowedMethods: Option[Set[Method]]
  7. val allowedOrigins: (String) ⇒ Boolean
  8. val anyMethod: Boolean
  9. val anyOrigin: Boolean
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(x: Any): Boolean
    Definition Classes
    CORSConfig → AnyRef → Any
  14. val exposedHeaders: Option[Set[String]]
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    CORSConfig → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val maxAge: FiniteDuration
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    CORSConfig → AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. def withAllowCredentials(allowCredentials: Boolean): CORSConfig
  29. def withAllowedHeaders(allowedHeaders: Option[Set[String]]): CORSConfig
  30. def withAllowedMethods(allowedMethods: Option[Set[Method]]): CORSConfig
  31. def withAllowedOrigins(allowedOrigins: (String) ⇒ Boolean): CORSConfig
  32. def withAnyMethod(anyMethod: Boolean): CORSConfig
  33. def withAnyOrigin(anyOrigin: Boolean): CORSConfig
  34. def withExposedHeaders(exposedHeaders: Option[Set[String]]): CORSConfig
  35. def withMaxAge(maxAge: FiniteDuration): CORSConfig

Inherited from AnyRef

Inherited from Any

Ungrouped