Websocket client connection on Safari 10 and OSX 10.12 (last version)

Hi,



I have a simple html page in my OSX in local, and it has a websocket client inside which must connect to my websocket server located on my website : wss://www.mydomain/wsserver



Connection is not working on last version of Safari (10) with OSX 10.12 but is working on Google Chrome and on Safaro 9.0.



I read this problem in a lot of forums thaat I must put the line:



<meta http-equiv="Content-Security-Policy" content="default-src * gap: data: blob: 'unsafe-inline' 'unsafe-eval' ws: wss:;">

But it doesn't work also. Do you know which is the correct line to add to tag?



Thanks.

The problem comes from the websocket server, based on Tomcat 8.

Websocket server open a connection then when it sends a message to the client, the following exception is thrown: The client aborted the connection.

On the client, the javascript error is: WebSocket connection to 'wss://...' failed: Unexpected start character in header name.



No problems with other browsers like Chrome or Firefox.

Websocket client connection on Safari 10 and OSX 10.12 (last version)
 
 
Q