Package io.muserver.handlers
Class CORSHandler
- java.lang.Object
-
- io.muserver.handlers.CORSHandler
-
- All Implemented Interfaces:
MuHandler
public class CORSHandler extends java.lang.Object implements MuHandler
A handler that adds CORS headers to responses. Create a builder withCORSHandlerBuilder.corsHandler()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handle(MuRequest request, MuResponse response)
Called when an HTTP request is made (unless a previous handler stopped handler processing)
-
-
-
Method Detail
-
handle
public boolean handle(MuRequest request, MuResponse response)
Description copied from interface:MuHandler
Called when an HTTP request is made (unless a previous handler stopped handler processing)
-
-