Class CORSHandler

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

    public class CORSHandler
    extends PipelinedHandler
    Author:
    Andrea Di Cesare <andrea@softinstigate.com> The Access-Control-Expose-Headers header indicates which headers are safe to expose to the API of a CORS API specification. IT also injects the X-Powered-By response header
    • Constructor Detail

      • CORSHandler

        public CORSHandler()
        Creates a new instance of CORSHandler
      • CORSHandler

        public CORSHandler​(PipelinedHandler next)
        Creates a new instance of CORSHandler
        Parameters:
        next -
      • CORSHandler

        public CORSHandler​(io.undertow.server.HttpHandler next)
        Creates a new instance of GetRootHandler
        Parameters:
        next -
    • Method Detail

      • handleRequest

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