Class DefaultCorsHandler

java.lang.Object
org.apache.tapestry5.http.internal.services.DefaultCorsHandler
All Implemented Interfaces:
CorsHandler

public class DefaultCorsHandler extends Object implements CorsHandler

Default CorsHandler implementation. It will process all requests with an Origin HTTP header, regardless of path. It will also perform preflight requests if CorsHandlerHelper.isPreflight(HttpServletRequest) returns true. Most logic is delegated is CorsHandlerHelper.

This implementation is inspired by the cors NPM module.

Since:
5.8.2
See Also: