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

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. val allowCredentials: Boolean
  2. val allowedHeaders: Option[Set[String]]
  3. val allowedMethods: Option[Set[Method]]
  4. val allowedOrigins: (String) ⇒ Boolean
  5. val anyMethod: Boolean
  6. val anyOrigin: Boolean
  7. def equals(x: Any): Boolean
    Definition Classes
    CORSConfig → AnyRef → Any
  8. val exposedHeaders: Option[Set[String]]
  9. def hashCode(): Int
    Definition Classes
    CORSConfig → AnyRef → Any
  10. val maxAge: FiniteDuration
  11. def toString(): String
    Definition Classes
    CORSConfig → AnyRef → Any
  12. def withAllowCredentials(allowCredentials: Boolean): CORSConfig
  13. def withAllowedHeaders(allowedHeaders: Option[Set[String]]): CORSConfig
  14. def withAllowedMethods(allowedMethods: Option[Set[Method]]): CORSConfig
  15. def withAllowedOrigins(allowedOrigins: (String) ⇒ Boolean): CORSConfig
  16. def withAnyMethod(anyMethod: Boolean): CORSConfig
  17. def withAnyOrigin(anyOrigin: Boolean): CORSConfig
  18. def withExposedHeaders(exposedHeaders: Option[Set[String]]): CORSConfig
  19. def withMaxAge(maxAge: FiniteDuration): CORSConfig