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.
CorsHandler(delegate: CorsHandler) |
static val __TYPE_ARG: TypeArg<CorsHandler> |
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. |
|
open fun allowedHeader(headerName: String): CorsHandler
Add an allowed header |
|
open fun allowedHeaders(headerNames: MutableSet<String>): CorsHandler
Add a set of allowed headers |
|
open fun allowedMethod(method: HttpMethod): CorsHandler
Add an allowed method |
|
open static fun create(allowedOriginPattern: String): CorsHandler
Create a CORS handler |
|
open fun equals(other: Any?): Boolean |
|
open fun exposedHeader(headerName: String): CorsHandler
Add an exposed header |
|
open fun exposedHeaders(headerNames: MutableSet<String>): CorsHandler
Add a set of exposed headers |
|
open fun getDelegate(): CorsHandler |
|
open fun handle(arg0: RoutingContext): Unit |
|
open fun hashCode(): Int |
|
open fun maxAgeSeconds(maxAgeSeconds: Int): CorsHandler
Set how long the browser should cache the information |
|
open static fun newInstance(arg: CorsHandler): CorsHandler |
|
open fun toString(): String |