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()`.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
void | void allowMethods(string[] allowedMethods) | ||||
auto | auto maxAge(string age) | ||||
void | void allowHeaders(string[] headersToAccept) | ||||
void | void allowCredentials() | ||||
this(IResponse | this(IResponse aResponse, string originHeader, bool isRequestOverSsl = false) | ||||
IResponse | IResponse build() | ||||
auto | auto exposeHeaders(string[] corsResponseHeaders) | ||||
void | void allowOrigin(string[] allowedDomains) | ||||
Json[string] | Json[string] _normalizeDomains(string[] domainNamesToNormalize) |