Package org.elasticsearch.http
Class CorsHandler
java.lang.Object
org.elasticsearch.http.CorsHandler
This file is forked from the https://netty.io project. In particular it combines the following three
files: io.netty.handler.codec.http.cors.CorsHandler, io.netty.handler.codec.http.cors.CorsConfig, and
io.netty.handler.codec.http.cors.CorsConfigBuilder.
It modifies the original netty code to operate on Elasticsearch http request/response abstractions.
Additionally, it removes CORS features that are not used by Elasticsearch.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CorsHandler.Config
buildConfig(Settings settings)
static CorsHandler
disabled()
static CorsHandler
fromSettings(Settings settings)
handleInbound(HttpRequest request)
void
setCorsResponseHeaders(HttpRequest httpRequest, HttpResponse httpResponse)
-
Field Details
-
ANY_ORIGIN
- See Also:
- Constant Field Values
-
ORIGIN
- See Also:
- Constant Field Values
-
DATE
- See Also:
- Constant Field Values
-
VARY
- See Also:
- Constant Field Values
-
HOST
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_REQUEST_METHOD
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_ALLOW_HEADERS
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_ALLOW_METHODS
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_ALLOW_ORIGIN
- See Also:
- Constant Field Values
-
ACCESS_CONTROL_MAX_AGE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CorsHandler
-
-
Method Details
-
handleInbound
-
setCorsResponseHeaders
-
disabled
-
buildConfig
-
fromSettings
-