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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowCredentials: Boolean
- val allowedHeaders: Option[Set[String]]
- val allowedMethods: Option[Set[Method]]
- val allowedOrigins: (String) ⇒ Boolean
- val anyMethod: Boolean
- val anyOrigin: Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(x: Any): Boolean
- Definition Classes
- CORSConfig → AnyRef → Any
- val exposedHeaders: Option[Set[String]]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- CORSConfig → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxAge: FiniteDuration
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- CORSConfig → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- 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