A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/filters/cors/CORSConfig$.html below:

CORSConfig - play.filters.cors.CORSConfig

  • 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
  • object Origins
  • def apply(allowedOrigins: Origins, isHttpMethodAllowed: (String) ⇒ Boolean, isHttpHeaderAllowed: (String) ⇒ Boolean, exposedHeaders: Seq[String], supportsCredentials: Boolean, preflightMaxAge: Duration): CORSConfig
  • final def asInstanceOf[T0]: T0
  • def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  • val denyAll: CORSConfig
  • final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  • def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  • def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  • def fromConfiguration(conf: api.Configuration): CORSConfig

    Build a CORSConfig from a play.api.Configuration

    Build a CORSConfig from a play.api.Configuration

    Example:

    1. The configuration is as follows:

      play.filters.cors {
          pathPrefixes = ["/myresource", ...]  # ["/"] by default
          allowedOrigins = ["http://...", ...]  # If null, all origins are allowed
          allowedHttpMethods = ["PATCH", ...]  # If null, all methods are allowed
          allowedHttpHeaders = ["Custom-Header", ...]  # If null, all headers are allowed
          exposedHeaders = [...]  # empty by default
          supportsCredentials = true  # true by default
          preflightMaxAge = 1 hour  # 1 hour by default
          serveForbiddenOrigins = false  # false by default
      }
  • final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  • def hashCode(): Int
    Definition Classes
    AnyRef → Any
  • final def isInstanceOf[T0]: Boolean
  • final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  • final def notify(): Unit
    Definition Classes
    AnyRef
  • final def notifyAll(): Unit
    Definition Classes
    AnyRef
  • final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  • def toString(): String
    Definition Classes
    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( ... )

  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4