Class/Object

ch.megard.akka.http.cors

CorsSettings

Related Docs: object CorsSettings | package cors

Permalink

abstract class CorsSettings extends AnyRef

Settings used by the CORS directives.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CorsSettings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CorsSettings()

    Permalink

Abstract Value Members

  1. abstract def allowCredentials: Boolean

    Permalink

    Indicates whether the resource supports user credentials.

    Indicates whether the resource supports user credentials. If true, the header Access-Control-Allow-Credentials is set in the response, indicating that the actual request can include user credentials. Examples of user credentials are: cookies, HTTP authentication or client-side certificates.

    Default: true

    See also

    Access-Control-Allow-Credentials

  2. abstract def allowGenericHttpRequests: Boolean

    Permalink

    If true, allow generic requests (that are outside the scope of the specification) to pass through the directive.

    If true, allow generic requests (that are outside the scope of the specification) to pass through the directive. Else, strict CORS filtering is applied and any invalid request will be rejected.

    Default: true

  3. abstract def allowedHeaders: HttpHeaderRange

    Permalink

    List of request headers that can be used when making an actual request.

    List of request headers that can be used when making an actual request. Controls the content of the Access-Control-Allow-Headers header in a preflight response: if parameter is *, the headers from Access-Control-Request-Headers are echoed. Otherwise the parameter list is returned as part of the header.

    Default: HttpHeaderRange.*

    See also

    Access-Control-Allow-Headers

  4. abstract def allowedMethods: Seq[HttpMethod]

    Permalink

    List of methods that can be used when making an actual request.

    List of methods that can be used when making an actual request. The list is returned as part of the Access-Control-Allow-Methods preflight response header.

    The preflight request will be rejected if the Access-Control-Request-Method header's method is not part of the list.

    Default: Seq(GET, POST, HEAD, OPTIONS)

    See also

    Access-Control-Allow-Methods

  5. abstract def allowedOrigins: HttpOriginRange

    Permalink

    List of origins that the CORS filter must allow.

    List of origins that the CORS filter must allow. Can also be set to * to allow access to the resource from any origin. Controls the content of the Access-Control-Allow-Origin response header: if parameter is * and credentials are not allowed, a * is set in Access-Control-Allow-Origin. Otherwise, the origins given in the Origin request header are echoed.

    The actual or preflight request is rejected if any of the origins from the request is not allowed.

    Default: HttpOriginRange.*

    See also

    Access-Control-Allow-Origin

  6. abstract def exposedHeaders: Seq[String]

    Permalink

    List of headers (other than simple response headers) that browsers are allowed to access.

    List of headers (other than simple response headers) that browsers are allowed to access. If not empty, this list is returned as part of the Access-Control-Expose-Headers header in the actual response.

    Default: Seq.empty

    See also

    Access-Control-Expose-Headers

    Simple response headers.

  7. abstract def maxAge: Option[Long]

    Permalink

    When set, the amount of seconds the browser is allowed to cache the results of a preflight request.

    When set, the amount of seconds the browser is allowed to cache the results of a preflight request. This value is returned as part of the Access-Control-Max-Age preflight response header. If None, the header is not added to the preflight response.

    Default: Some(30 * 60)

    See also

    Access-Control-Max-Age

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped