Class CorsHandler

java.lang.Object
org.elasticsearch.http.CorsHandler

public class CorsHandler extends Object
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.