Class HttpUtils


  • public class HttpUtils
    extends Object
    • Constructor Detail

      • HttpUtils

        public HttpUtils()
    • Method Detail

      • setupCORSHeaders

        public static void setupCORSHeaders​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                            javax.servlet.ServletResponse response)
                                     throws IOException
        Setup CORS headers as soon as possible so that errors are not misconstrued on the client for CORS errors
        Parameters:
        httpServletRequest - the http servlet request object to use
        response - the http servlet response object to use
        Throws:
        IOException - raised if there was a problem reading from the request or writing to the response