I am getting this error but everything required for CORS is defined on Node.js server.
I am using localhost:3000
Frontend Code :
 jQuery.ajax({
    type : "GET",
    url : "http://testing.com/iverse.json",
    success : function(result) {
        console.log("here is the result===",result);
        }
    });
Node.js Code for headers
app.use(function (req, res, next) {
  res.setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, ajax, access-key');
  res.setHeader('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS, HEAD');
  res.setHeader('Access-Control-Allow-Origin', "*");
  next();
});
Please let me know where is the error ?
 
     
     
    