Class

ch.megard.akka.http.cors.CorsSettings

Default

Related Doc: package CorsSettings

Permalink

final case class Default(allowGenericHttpRequests: Boolean, allowCredentials: Boolean, allowedOrigins: HttpOriginRange, allowedHeaders: HttpHeaderRange, allowedMethods: Seq[HttpMethod], exposedHeaders: Seq[String], maxAge: Option[Long]) extends CorsSettings with Product with Serializable

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

Instance Constructors

  1. new Default(allowGenericHttpRequests: Boolean, allowCredentials: Boolean, allowedOrigins: HttpOriginRange, allowedHeaders: HttpHeaderRange, allowedMethods: Seq[HttpMethod], exposedHeaders: Seq[String], maxAge: Option[Long])

    Permalink

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. val 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

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Allow-Credentials

  5. val 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

    Definition Classes
    DefaultCorsSettings
  6. val 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.*

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Allow-Headers

  7. val 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)

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Allow-Methods

  8. val 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.*

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Allow-Origin

  9. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  12. val 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

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Expose-Headers

    Simple response headers.

  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  16. val 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)

    Definition Classes
    DefaultCorsSettings
    See also

    Access-Control-Max-Age

  17. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CorsSettings

Inherited from AnyRef

Inherited from Any

Ungrouped