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
- Alphabetic
- By Inheritance
Inherited
- CORSConfig
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val allowCredentials: Boolean
- val allowedHeaders: Option[Set[String]]
- val allowedMethods: Option[Set[Method]]
- val allowedOrigins: (String) ⇒ Boolean
- val anyMethod: Boolean
- val anyOrigin: Boolean
-
def
equals(x: Any): Boolean
- Definition Classes
- CORSConfig → AnyRef → Any
- val exposedHeaders: Option[Set[String]]
-
def
hashCode(): Int
- Definition Classes
- CORSConfig → AnyRef → Any
- val maxAge: FiniteDuration
-
def
toString(): String
- Definition Classes
- CORSConfig → AnyRef → Any
- def withAllowCredentials(allowCredentials: Boolean): CORSConfig
- def withAllowedHeaders(allowedHeaders: Option[Set[String]]): CORSConfig
- def withAllowedMethods(allowedMethods: Option[Set[Method]]): CORSConfig
- def withAllowedOrigins(allowedOrigins: (String) ⇒ Boolean): CORSConfig
- def withAnyMethod(anyMethod: Boolean): CORSConfig
- def withAnyOrigin(anyOrigin: Boolean): CORSConfig
- def withExposedHeaders(exposedHeaders: Option[Set[String]]): CORSConfig
- def withMaxAge(maxAge: FiniteDuration): CORSConfig