public String a(HttpServletRequest request,HttpServletResponse response) throws JSONException, IOException, ParseException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{ response.addHeader( "Access-Control-Allow-Origin&…