public final class CorsUtils
extends java.lang.Object
| Constructor and Description |
|---|
CorsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
setCorsResponseHandlers(HttpExchange he)
Turn on Cross Origin Resource Sharing (see http://www.w3.org/TR/cors/) to allow web applications from other
servers/ports to communicate with us.
|
static void |
setCorsResponseHandlers(HttpServletRequest request,
HttpServletResponse response)
Turn on Cross Origin Resource Sharing (see http://www.w3.org/TR/cors/) to allow web applications from other
servers/ports to communicate with us.
|
public static boolean setCorsResponseHandlers(HttpExchange he) throws java.io.IOException
java.io.IOExceptionpublic static void setCorsResponseHandlers(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException
request - response - java.io.IOException