Socket.IO - cannot load XMLHttpRequest in Google Chrome
问题 I'm trying to get very first example from socket.io home page working in Chrome(19.0.1048.46) but I get the error: "XMLHttpRequest cannot load http:// localhost:8080/socket.io/1/?t=1337156198176. Origin null is not allowed by Access-Control-Allow-Origin." Server code: var app = require('http').createServer(handler) , io = require('socket.io').listen(app) , fs = require('fs') app.listen(8080); function handler (req, res) { fs.readFile(__dirname + '/index.html', function (err, data) { if (err)