Packages

case class CORSConfig(allowedOrigin: AllowedOrigin, allowedCredentials: AllowedCredentials, allowedMethods: AllowedMethods, allowedHeaders: AllowedHeaders, exposedHeaders: ExposedHeaders, maxAge: MaxAge, preflightResponseStatusCode: StatusCode) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CORSConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CORSConfig(allowedOrigin: AllowedOrigin, allowedCredentials: AllowedCredentials, allowedMethods: AllowedMethods, allowedHeaders: AllowedHeaders, exposedHeaders: ExposedHeaders, maxAge: MaxAge, preflightResponseStatusCode: StatusCode)

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. def allowAllHeaders: CORSConfig

    Allows CORS requests with any headers.

    Allows CORS requests with any headers.

    Sets the Access-Control-Allow-Headers response header to *

  5. def allowAllMethods: CORSConfig

    Allows CORS requests using any method.

    Allows CORS requests using any method.

    Sets the Access-Control-Allow-Methods response header to *

  6. def allowAllOrigins: CORSConfig

    Allows CORS requests from any origin.

    Allows CORS requests from any origin.

    Sets the Access-Control-Allow-Origin response header to *.

  7. def allowCredentials: CORSConfig

    Allows credentialed requests by setting the Access-Control-Allow-Credentials response header to true

  8. def allowHeaders(headerNames: String*): CORSConfig

    Allows CORS requests using specific headers.

    Allows CORS requests using specific headers.

    If the preflight request's Access-Control-Request-Headers header requests one of the specified headers, the Access-Control-Allow-Headers response header is set to a comma-separated list of the given headers. Otherwise the Access-Control-Allow-Headers response header is suppressed.

  9. def allowMatchingOrigins(predicate: (String) => Boolean): CORSConfig

    Allows CORS requests from origins matching predicate

    Allows CORS requests from origins matching predicate

    If the request Origin header matches the given predicate, sets the Access-Control-Allow-Origin response header to the given origin. Otherwise the Access-Control-Allow-Origin response header is suppressed.

  10. def allowMethods(methods: Method*): CORSConfig

    Allows CORS requests using specific methods.

    Allows CORS requests using specific methods.

    If the preflight request's Access-Control-Request-Method header requests one of the specified methods, the Access-Control-Allow-Methods response header is set to a comma-separated list of the given methods. Otherwise the Access-Control-Allow-Methods response header is suppressed.

  11. def allowOrigin(origin: Origin): CORSConfig

    Allows CORS requests only from a specific origin.

    Allows CORS requests only from a specific origin.

    If the request Origin matches the given origin, sets the Access-Control-Allow-Origin response header to the given origin. Otherwise the Access-Control-Allow-Origin response header is suppressed.

  12. val allowedCredentials: AllowedCredentials
  13. val allowedHeaders: AllowedHeaders
  14. val allowedMethods: AllowedMethods
  15. val allowedOrigin: AllowedOrigin
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  18. def defaultMaxAge: CORSConfig

    Determines how long the response to a preflight request can be cached by the client.

    Determines how long the response to a preflight request can be cached by the client.

    Suppresses the Access-Control-Max-Age response header, which makes the client use its default value.

  19. def defaultPreflightResponseStatusCode: CORSConfig

    Sets the response status code of successful preflight requests to "204 No Content"

  20. def denyCredentials: CORSConfig

    Blocks credentialed requests by suppressing the Access-Control-Allow-Credentials response header

  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def exposeAllHeaders: CORSConfig

    Exposes all response headers to JavaScript in browsers

    Exposes all response headers to JavaScript in browsers

    Sets the Access-Control-Expose-Headers response header to *

  23. def exposeHeaders(headerNames: String*): CORSConfig

    Exposes specific response headers to JavaScript in browsers

    Exposes specific response headers to JavaScript in browsers

    Sets the Access-Control-Expose-Headers response header to a comma-separated list of the given headerNames

  24. def exposeNoHeaders: CORSConfig

    Exposes no response headers to JavaScript in browsers

    Exposes no response headers to JavaScript in browsers

    Suppresses the Access-Control-Expose-Headers response header

  25. val exposedHeaders: ExposedHeaders
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def maxAge(duration: Duration): CORSConfig

    Determines how long the response to a preflight request can be cached by the client.

    Determines how long the response to a preflight request can be cached by the client.

    Sets the Access-Control-Max-Age response header to the given duration in seconds.

  29. val maxAge: MaxAge
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def preflightResponseStatusCode(statusCode: StatusCode): CORSConfig

    Sets the response status code of successful preflight requests to the given statusCode

  34. val preflightResponseStatusCode: StatusCode
  35. def productElementNames: Iterator[String]
    Definition Classes
    Product
  36. def reflectHeaders: CORSConfig

    Allows CORS requests using any headers requested in preflight request's Access-Control-Request-Headers header.

    Allows CORS requests using any headers requested in preflight request's Access-Control-Request-Headers header.

    Use reflectHeaders instead of allowAllHeaders when credentialed requests are enabled with allowCredentials, since wildcards are illegal when credentials are enabled

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped