Description

A builder object that assists in defining Cross Origin Request related headers. Each of the methods in this object provide a fluent interface. Once you've set all the headers you want to use, the `build()` method can be used to return a modified Response. It is most convenient to get this object via `Response.cors()`.

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
voidvoid allowMethods(string[] allowedMethods)
autoauto maxAge(string age)
voidvoid allowHeaders(string[] headersToAccept)
voidvoid allowCredentials()
this(IResponsethis(IResponse aResponse, string originHeader, bool isRequestOverSsl = false)
IResponseIResponse build()
autoauto exposeHeaders(string[] corsResponseHeaders)
voidvoid allowOrigin(string[] allowedDomains)
Json[string]Json[string] _normalizeDomains(string[] domainNamesToNormalize)