tornado 403 with websocket messaging

42 views
Skip to first unread message

Serbitar

unread,
May 25, 2015, 12:54:35 PM5/25/15
to web...@googlegroups.com


to fix this:


you have to modify: gluon/contrib/websocket_messaging.py 

to

class DistributeHandler(tornado.websocket.WebSocketHandler):

    def check_origin(self, origin):
        return True

    def open(self, params):
        group, token, name = params.split('/') + [None, None]
        self.group = group or 'default'
        self.token = token or 'none'
        self.name = name or 'anonymous'
        # only authorized parties can join
        ...

Thanks

Massimo Di Pierro

unread,
May 28, 2015, 1:33:41 AM5/28/15
to web...@googlegroups.com, rser...@gmail.com
Can you submit a pull request?

Serbitar

unread,
May 30, 2015, 5:11:12 AM5/30/15
to web...@googlegroups.com, rser...@gmail.com
Ok.
Reply all
Reply to author
Forward
0 new messages