Class CorsHttpHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class CorsHttpHandler
    extends Object
    implements io.undertow.server.HttpHandler
    Undertow handler for CORS headers.
    Author:
    Emmanuel Hugonnet (c) 2014 Red Hat, inc.
    • Constructor Detail

      • CorsHttpHandler

        public CorsHttpHandler​(io.undertow.server.HttpHandler next,
                               Collection<String> allowedOrigins)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception