No 'Access-Control-Allow-Origin' header is present on the requested resource.

原因:跨域访问 ,dataType必须是jsonp格式

 

jsp代码

No 'Access-Control-Allow-Origin' header is present on the requested resource.

 java代码

String callback = request.getParameter("callback");

PrintWriter out = response.getWriter();

String msg = callback+"({\"message\":\"error\", \"meetingImage\":\"\"})";
   out.print(msg );