Class CorsHandler

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, ChannelOutboundHandler

public class CorsHandler extends ChannelDuplexHandler
Handles Cross Origin Resource Sharing (CORS) requests.

This handler can be configured using one or more CorsConfig, please refer to this class for details about the configuration options available.

If CORS support is enabled for at least one CorsConfig, every response written by this handler will carry Vary: Origin, including responses to requests without Origin header or with an origin that is not allowed.