Error during WebSocket handshake: Unexpected response code: 200

I want to run the video sample under a web app for video playing but this error appear : WebSocket connection to 'ws://192.168.3.59:8081/XProtectMobile/Video/b22d5b9e-0a78-49fa-a66f-b45af9f42f2c’ failed: Error during WebSocket handshake: Unexpected response code: 200

I realize that this path "XProtectMobile/Video/b22d5b9e-0a78-49fa-a66f-b45af9f42f2c" does not exist under the xprotect mobile server.

Hi Anis,

Could you elaborate what exactly you have run and where it was hosted? In particular in the Mobile server itself or not.

It seems to me like problem with CORS for the WebSockets.

Mobile server does check them but because of issue it doesn’t respond correctly on error. This should be fixed in the upcoming 2021 R1 release.

What version of the Mobile server are you using btw ?