Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.21k stars 566 forks source link

Unable to connect web socket, click to reconnect (issue only in iframe) #4614

Open mateuszstacel opened 2 years ago

mateuszstacel commented 2 years ago

Describe your issue I'm able to login from public ip address to my account. However when I try to login from embded view via iframe I'm getting this message Unable to connect web socket, click to reconnect, and when I click on click to reconnect it is taking me to login screen. Screenshots image image image

Server Software (please complete the following information):

silversword411 commented 2 years ago

Doesn't look like you allowed framing?

https://github.com/Ylianst/MeshCentral/blob/601d5e5fcb8a71c027568a8ed60bc750425c7ced/meshcentral-config-schema.json#L120

mateuszstacel commented 2 years ago

Doesn't look like you allowed framing?

https://github.com/Ylianst/MeshCentral/blob/601d5e5fcb8a71c027568a8ed60bc750425c7ced/meshcentral-config-schema.json#L120

I have it in my .config please see attached image above. I'm able to render page in iframe but when I login then I have issue with connect web socket. It is only happening In iframe if I access by public IP than everything is working as expected

silversword411 commented 2 years ago

I double checked, framing is there I missed it 🙂

Isn't access via IP going to require a manual bypassing on all the DNS based checks and SSL cert configurations...which would point to a DNS issue?

mateuszstacel commented 2 years ago

hmm can you point me to solution? not sure how I can handle it

silversword411 commented 2 years ago

I think this is an understanding and implementation problem, and I have a feeling you have other unique things going on with what you're trying to do (iframe implies you're probably doing some kind of programmatic integration with something you're building). Open a ticket at https://www.ineedhelpwithtech.com if you'd like to schedule some time for a consult.