Open olleharstedt opened 4 years ago
Using wss from browser gives another result, but it still explodes
Fatal error: exception Websocket_lwt_unix.HTTP_Error("Malformed request HTTP version: \139\150V\174\221\217\128E+A=\238\160\197$\154\027\157")
I had the same problem when I set up a server with Websocket_lwt_unix.establish_standard_server ~mode handler
and tested it from Firefox/Chrome extensions. The problem was the call to check_request
failing because the origin header was chrome-extension://...
which didn't match the host. I fixed this by calling establish_standard_server
with ~check_request:(fun _ -> true)
.
I compile the lwt example and run it with
From the browser (Firefox) I run
The browser fails with
and the server with
Any ideas what's wrong?