vertx / io.vertx.rxjava.ext.web.handler / CorsHandler

# CorsHandler

`open class CorsHandler : Handler<RoutingContext>`

A handler which implements server side http://www.w3.org/TR/cors/[CORS] support for Vert.x-Web. NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.CorsHandler non RX-ified interface using Vert.x codegen.

### Constructors

<init> | `CorsHandler(delegate: CorsHandler)`

### Properties

__TYPE_ARG | `static val __TYPE_ARG: TypeArg<CorsHandler>`

### Functions

allowCredentials | `open fun allowCredentials(allow: Boolean): CorsHandler` Set whether credentials are allowed. Note that user agents will block requests that use a wildcard as origin and include credentials. From the MDN documentation you can read: Important note: when responding to a credentialed request, server must specify a domain, and cannot use wild carding.
allowedHeader | `open fun allowedHeader(headerName: String): CorsHandler` Add an allowed header
allowedHeaders | `open fun allowedHeaders(headerNames: MutableSet<String>): CorsHandler` Add a set of allowed headers
allowedMethod | `open fun allowedMethod(method: HttpMethod): CorsHandler` Add an allowed method
create | `open static fun create(allowedOriginPattern: String): CorsHandler` Create a CORS handler
equals | `open fun equals(other: Any?): Boolean`
exposedHeader | `open fun exposedHeader(headerName: String): CorsHandler` Add an exposed header
exposedHeaders | `open fun exposedHeaders(headerNames: MutableSet<String>): CorsHandler` Add a set of exposed headers
getDelegate | `open fun getDelegate(): CorsHandler`
handle | `open fun handle(arg0: RoutingContext): Unit`
hashCode | `open fun hashCode(): Int`
maxAgeSeconds | `open fun maxAgeSeconds(maxAgeSeconds: Int): CorsHandler` Set how long the browser should cache the information
newInstance | `open static fun newInstance(arg: CorsHandler): CorsHandler`
toString | `open fun toString(): String`