Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSocket network error: OSStatus Error -9807: Invalid certificate chain

I'm getting following error while connecting to websocket's in safari, In remaining browsers it is working fine

Error:

WebSocket network error: OSStatus Error -9807: Invalid certificate chain

Code:

var websocket = new WebSocket("wss://localhost:44300/websocketHome", "Room_123")
like image 313
Arjun Avatar asked Jun 18 '16 14:06

Arjun


1 Answers

The workaround is to enable NSURLSession Websocket in Settings > Safari > Advanced > Experimental Features > NSURLSession Websocket. Should work on iOS 13.4.1+.

Note this may not be suitable for production environments.

like image 131
ark234 Avatar answered Nov 15 '22 00:11

ark234