socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Ignore 'origins' settings on disconnect

Open gendalf opened this issue 14 years ago • 2 comments

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

gendalf avatar Aug 11 '12 06:08 gendalf

Good point.

rauchg avatar Aug 11 '12 14:08 rauchg

Seems to be a duplicate of #1214.

farnoux avatar Apr 25 '13 14:04 farnoux