Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.1.2.Final
    • Fix Version/s: None
    • Component/s: ErraiBus
    • Labels:
      None

      Description

      When errai set socket scheme it doesn't check "X-Forwarded-Ssl" header.
      We are using errai behind a loadbalancer (haproxy) who is handling ssl, we use "force-secure-websockets" but we can't use http and https on the same project.

      Is it possible de replace this :

      String websocketScheme = "ws";
      if (request.getScheme().equals("https") || useSecureWebsocket)

      { websocketScheme = "wss"; log.debug("use secure websocket"); }

      By something like this :

      String websocketScheme = "ws";
      if (request.getScheme().equals("https") || useSecureWebsocket || "on".equalsIgnoreCase(request.getHeader("X-Forwarded-Ssl")) ) { websocketScheme = "wss"; log.debug("use secure websocket"); }

      Regards
      Thomas.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                csa Christian Sadilek
                Reporter:
                thomas.detee Thomas DETEE
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: