# Https://github.com/mattermost/platform/issues/5386

**URL:** <https://forum.mattermost.com/t/https-github-com-mattermost-platform-issues-5386/2996>\
**Category:** Troubleshooting\
**Created:** [March 1, 2017, 3:05pm UTC](https://forum.mattermost.com/t/https-github-com-mattermost-platform-issues-5386/2996 "2017-03-01T15:05:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![demedos1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@demedos1](https://forum.mattermost.com/u/demedos1)\
**Post date:** [March 1, 2017, 3:05pm UTC](https://forum.mattermost.com/t/https-github-com-mattermost-platform-issues-5386/2996/1 "2017-03-01T15:05:32Z")

</div>

#### Summary

WebSockets not working with IIS 8 as reverse proxy

#### Steps to reproduce

setup Windows Server 2012, IIS 8 with URL Rewrite 2.0 and ARR 3.0, create a rule to rewrite all the request to a linux server containing Mattermost

#### Expected behavior

ws:// requests working

#### Observed behavior

ws requests generates errors. See screenshots in my github issue

[https://github.com/mattermost/platform/issues/5386](https://github.com/mattermost/platform/issues/5386)

---

<div class="post-metadata">

**Author:** ![bradhowes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bradhowes/32/1060_2.png) [@bradhowes](https://forum.mattermost.com/u/bradhowes)\
**Post date:** [March 2, 2017, 8:37am UTC](https://forum.mattermost.com/t/https-github-com-mattermost-platform-issues-5386/2996/2 "2017-03-02T08:37:51Z")

</div>

This is a problem with a recent change to web socket processing in Mattermost. Specifically, [https://github.com/mattermost/platform/commit/1a9891f0f5671551d28be54a99155b907480cc5c](https://github.com/mattermost/platform/commit/1a9891f0f5671551d28be54a99155b907480cc5c)

Try reverting the change to CheckOrigin. This really should mimic what is being done for HTTP connections in the server.go file (see ServeHTTP where there is the check for Origin header).

We had the same problem recently and reverting this change fixed our web socket issues.

---

<div class="post-metadata">

**Author:** ![demedos1](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@demedos1](https://forum.mattermost.com/u/demedos1)\
**Post date:** [March 2, 2017, 11:53am UTC](https://forum.mattermost.com/t/https-github-com-mattermost-platform-issues-5386/2996/3 "2017-03-02T11:53:12Z")

</div>

I’m a windows user, any chance you branch and compile it?
