socket.io
socket.io copied to clipboard
Ignore 'origins' settings on disconnect
I have socket.io server on different port, in settings use "origins: myhost:*", all init and work fine;
But on page close|reload I see that: XMLHttpRequest cannon load http://myhost:443/socket.io/1//m8XLK9TRgHzuwkkdW6Y6?disconnect=1. Origin http://myhost is now allowed by Access-Control-Allow-Origin.
So Access-Control-Allow-Origin is generated when init (http://myhost:443/socket.io/1/?t=1344665803567) answer have header (Access-Control-Allow-Origin: myhost:*), but not have this header on disconnect
Good point.
Seems to be a duplicate of #1214.