Zero Trust Enabled Sites WebSocket Issue

What is the name of the domain?

example.com

What is the issue you’re encountering

The websocket keeps disconnecting if I enable the ZeroTrust on a site. the connection is established and reaches the server as well, but closing it immediately.

What steps have you taken to resolve the issue?

I thought it was because of Nginx, but after some debugging, it was because of Zero Trust. The user was already logged in, so the session should work for WSS connections as well.
After I turned off the Zero Trust, it worked fine, but now our test domain is exposed to the public.

What are the steps to reproduce the issue?

Re-enabling zero trust

Hello,

the connection is established and reaches the server as well, but closing it immediately.

Could you kindly provide the error that is displaying from your end ?

Thank you