abourget/gevent-socketio — pull request #20 by jpellerin (2012-04-04 14:46:47+00:00)
Title: Fix cross-origin handshake headers [#19]

Starting with version 0.9, socket.io.js sends its handshake XHR request with withCredentials=true. This means that gevent-socketio has to reply with the Access-Control-Origin header set, and the header value must contain the actual origin domain, not just a wildcard.

This patch makes that change to socketio/handler.py, and includes a cross-origin example that works with both socket.io.js 0.8 and 0.9.