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

Origins with Port 80

Open nambad opened this issue 15 years ago • 2 comments

When serving the html file from a localhost or apache server and also giving origins it gives error for illegal origin I realized that in the concept of origins, http://localhost is not equal to http://localhost:80 When using apache server to serve the file, ports part of the origins parameter is empty which according to me should be 80. So to set it, i changed the code and added a pull request

Related to Pull request https://github.com/LearnBoost/socket.io/pull/633

As einaros said, i opened this issue for a better solution the above problem

http://i44.tinypic.com/2h4cgpe.jpg

Reproducible code: https://gist.github.com/1363426 Please see the comments sections

nambad avatar Nov 14 '11 07:11 nambad

Thank you. I've fixed this in my fork now. You can go ahead and close the pull request.

einaros avatar Nov 14 '11 09:11 einaros

Need not thank me.. I wasn't sure the behavior was intended or not. Good to know that i contributed something to this awesome library..!! Thanks

nambad avatar Nov 14 '11 10:11 nambad