Package org.apache.tapestry5.http.services

## Interface CorsHandler

- All Known Implementing Classes:
    `DefaultCorsHandler`

      public interface CorsHandler

  Interface implemented by classes handling CORS (Cross-Origin Resource Sharing) in requests. Implementations should be contributed to `CorsHttpServletRequestFilter` and can use the useful methods from `CorsHandlerHelper`.
  Since:
    5.8.2
  See Also:
    `CorsHandlerHelper`, `CorsHandlerResult`, `CorsHttpServletRequestFilter`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `CorsHandlerResult` | `handle​(HttpServletRequest request, HttpServletResponse response)` | Handles the CORS processing of a request, possibly doing nothing.

- - ### Method Detail

    - #### handle

          CorsHandlerResult handle​(HttpServletRequest request,
                                   HttpServletResponse response)
                            throws IOException

      Handles the CORS processing of a request, possibly doing nothing. This method cannot return `null`.
      Returns:
        a CorsHandlerResult object.
      Throws:
        `IOException`