ec-jrc/Thalassa

Chrome rendering

brey opened this issue · 3 comments

brey commented

The server deployment doesn't render on Chrome while it works on Safari & Firefox.

It is not certain if it is a security issue.

In the nginx logs the following error appears which seems to be related:

==> thalassa.techrad.eu-ssl-error.log <==
2021/03/22 20:52:28 [info] 229#229: *4608 client sent too long header line: "Sec-WebSocket-Protocol: bokeh, eyJzZXNzaW9uX2lkIjogIkFqZUdEQXgxRnVNSGx0bFI5ZEsxdWpUSmM5Y091RmJ2YWFkejdjSXlUbmhHIiwgInNlc3Npb25fZXhwaXJ5IjogMTYxNjQ0NjYzNiwgImhlYWRlcnMiOiB7Ikhvc3QiOiAidGhhbGFzc2EudGVjaHJhZC5ldSIsICJYLVJlYWwtSXAiOiAiMTc4LjE0Ny4yNDcuMTk3IiwgIlgtRm9yd2FyZGVkLUZvciI6ICIxNzguMTQ3LjI0Ny4xOTciLCAiWC1Gb3J3YXJkZWQtUHJvdG8iOiAiaHR0cHMiLCAiQ29ubmVjdGlvbiI6ICJ1cGdyYWRlIiwgIlByYWdtYSI6ICJuby1jYWNoZSIsICJDYWNoZS1Db250cm9sIjogIm5vLWNhY2hlIiwgIlVwZ3JhZGUtSW5zZWN1cmUtUmVxdWVzdHMiOiAiMSIsICJVc2VyLUFnZW50IjogIk1vemlsbGEvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzg4LjAuNDMyNC4xODIgU2FmYXJpLzUzNy4zNiIsICJBY2NlcHQiOiAidGV4dC9odG1sLGFwcGxpY2F0aW9uL3hodG1sK3htbCxhcHBsaWNhdGlvbi94bWw7cT0wLjksaW1hZ2UvYXZpZixpbWFnZS93ZWJwLGltYWdlL2FwbmcsKi8qO3E9MC44LGFwcGxpY2F0aW9uL3NpZ25lZC1leGNoYW5nZTt2PWIzO3E9MC45IiwgIlNlYy1GZXRjaC1TaXRlIjogIm5vbmUiLCAiU2VjLUZldGNoLU1vZGUiOiAibmF2aWdhdGUiLCAiU2VjLUZldGNoLVVzZXIiOiAiPzEiLCAiU2VjLUZldGNoLURlc3QiOiAiZG9jdW1lbnQiLCAiQWNjZXB0LUVuY29kaW5nI..." while reading client request headers, client: 178.147.247.197, server: thalassa.techrad.eu, request: "GET /Elevation/ws HTTP/1.1", host: "thalassa.techrad.eu"

I think it is fixed now. I had to make the following change:

-large_client_header_buffers   2 1k;
+large_client_header_buffers   4 4k;

The values we were using were suggested here

brey commented

Confirm that it works on Mac/Chrome. Great work!