Cognos with HAProxy SSL Termination

My first time looking at IBM Cognos and we were setting up a load balancer in front of the nodes running it and ran into an issue where the SSL response back to the browser would cause the notifications to fail, of course, we looked online and went through documentation but there is not much out there. So I figured I would write a little snippet that shows how to work around the following error.

{\"cause\":\"Unrecognized SSL message, plaintext connection?\",\"error\":\"NOT-ERR-013 Failed to submit request to target: /bi/v1/disp\"}"

Once I saw the error, I recognized where it may be coming from but as I said above, there was not much detail on what causes the issue.

It’s actually a single line in HAProxy that causes the issue and it’s doing it through X-Forwarded-Proto,

If you come to find this error, you can remove the following line,

reqadd X-Forwarded-Proto: https

Reload HAProxy and refresh your page, and you’ll find it working.