Websockets error

opinionswrest

Member
Jan 6, 2020
117
5
Hi All,

Had websockets working on my rp/hotel now all of a sudden with no changes made they wont open keep getting:
'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

app.main.js?1617896701:190 Mixed Content: The page at 'https://******' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://********:3000/289'. This request has been blocked; this endpoint must be available over WSS.

I have changed to wss within app.main but then once done that it shows:

[WEBSOCKET] Websocket error {"isTrusted":true}
app.main.js?1617896817:201
[WEBSOCKET] Connection to the server disconnected...
app.main.js?1617896817:160

anyone have any ideas on a fix?

Using Cloudflare btw to secure the domain

Secure information removed or security reasons
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
It tells you the problem right there

'ws://********:3000/289'. This request has been blocked; this endpoint must be available over WSS
Post automatically merged:

You said "no changes were made" however it appears you went to HTTPS.
 

opinionswrest

Member
Jan 6, 2020
117
5
Its always been https as been using cloudflare and nothing has been changed since day 1
Post automatically merged:

Its always been https as been using cloudflare and nothing has been changed since day 1
Also

have changed to wss within app.main but then once done that it shows:

[WEBSOCKET] Websocket error {"isTrusted":true}
app.main.js?1617896817:201
[WEBSOCKET] Connection to the server disconnected...
app.main.js?1617896817:160

To attempt the fix and yet getting that gotta be something else
 
Last edited:

Jerry

not rly active lol
Jul 8, 2013
1,956
522
You have to use wss:// if you want to use HTTPS with a HTTPS port supported by CloudFlare.

Check
 

Users who are viewing this thread

Top