Comment 2 for bug 1434611

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

A workaround can be:

    --- a/nova/console/websocketproxy.py
    +++ b/nova/console/websocketproxy.py
    @@ -118,10 +120,11 @@ class NovaProxyRequestHandlerBase(object):
                 if expected_origin_hostname != origin_hostname:
                     detail = _("Origin header does not match this host.")
                     raise exception.ValidationError(detail=detail)
    - if not self.verify_origin_proto(connect_info['console_type'],
    - origin.scheme):
    - detail = _("Origin header protocol does not match this host.")
    - raise exception.ValidationError(detail=detail)
    + # mzoeller: bug https://bugs.launchpad.net/horizon/+bug/1434611
    + #if not self.verify_origin_proto(connect_info['console_type'],
    + # origin.scheme):
    + # detail = _("Origin header protocol does not match this host.")
    + # raise exception.ValidationError(detail=detail)

             self.msg(_('connect info: %s'), str(connect_info))
             host = connect_info['host']