Class CORSHandler

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.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
  • Field Details

  • Constructor Details

    • 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 Details

    • 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