Hi,
My ghttp is 8081 and ghttps is 8893 and i tried with both but SFS admin not login.
Showing below Error
sfs2x-api-1.7.15.js:7 Mixed Content: The page at 'https://Domain/admin/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://Domain:8081/BlueBox/websocket'. This request has been blocked; this endpoint must be available over WSS.
value @ sfs2x-api-1.7.15.js:7
value @ sfs2x-api-1.7.15.js:7
connect @ connection-manager.js:43
_onConnectClick @ shell-controller.js:210
i @ jquery-3.3.1.min.js:2
dispatch @ jquery-3.3.1.min.js:2
y.handle @ jquery-3.3.1.min.js:2
sfs2x-api-1.7.15.js:7 Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at t.value (/admin/assets/js/libs/sfs2x-api-1.7.15.js:7:19044)
at t.value (admin/assets/js/libs/sfs2x-api-1.7.15.js:7:85104)
at ConnectionManager.connect (admin/assets/js/core/application.bundle.js:406:12)
at ShellController._onConnectClick (admin/assets/js/core/application.bundle.js:1253:22)
at HTMLButtonElement.i (admin/assets/js/libs/jquery-3.3.1.min.js:2:86266)
at HTMLButtonElement.dispatch (admin/assets/js/libs/jquery-3.3.1.min.js:2:41772)
at y.handle (/admin/assets/js/libs/jquery-3.3.1.min.js:2:39791)
Whule Login to SFS admin Showing error
Re: Whule Login to SFS admin Showing error
Hi,
as per the error message your HTML page was loaded via HTTPS but internally it is trying to connect to a non-SSL websocket, which is considered a breach of security, since the websocket traffic would not be encrypted.
You will need to change your client code so that it points to was://... address rather than a ws:// one, in other words using a secure Websocket connection.
If you're not sure how to do this please check the docs here:
http://docs2x.smartfoxserver.com/Gettin ... yptography
You can find examples for all supported platforms, including HTML5
Cheers
as per the error message your HTML page was loaded via HTTPS but internally it is trying to connect to a non-SSL websocket, which is considered a breach of security, since the websocket traffic would not be encrypted.
You will need to change your client code so that it points to was://... address rather than a ws:// one, in other words using a secure Websocket connection.
If you're not sure how to do this please check the docs here:
http://docs2x.smartfoxserver.com/Gettin ... yptography
You can find examples for all supported platforms, including HTML5
Cheers
Re: Whule Login to SFS admin Showing error
One more question,
It is showing
Note:
- I added
<allowedRemoteAddresses>
<string>0.0.0.0</string>
It is showing
29 Jun 2022 | 14:48:03,203 | INFO | https-jsse-nio-8893-exec-9 | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 4, Type: WEBSOCKET, Logged: No, IP: 172.70.38.163 } on Server port: 8893 <---> 49234
29 Jun 2022 | 14:48:04,402 | WARN | SFSWorker:Ext:8 | entities.managers.SFSExtensionManager | | com.smartfoxserver.v2.exceptions.SFSLoginException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSLoginException
Message: Admin login refused to user 'sfsadmin': invalid remote IP address
Description: Extension's Login Handler exception
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.admin.handlers.events.LoginEvtHandler.handleServerEvent(LoginEvtHandler.java:76)
com.smartfoxserver.v2.extensions.SFSExtension.handleServerEvent(SFSExtension.java:259)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchEvent(SFSExtensionManager.java:769)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchZoneLevelEvent(SFSExtensionManager.java:690)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.handleServerEvent(SFSExtensionManager.java:888)
com.smartfoxserver.v2.core.SFSEventManager$SFSEventRunner.run(SFSEventManager.java:66)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Note:
- I added
<allowedRemoteAddresses>
<string>0.0.0.0</string>
Re: Whule Login to SFS admin Showing error
If you want to allow any address to reach the server as admin you just need to leave the list of allowed addresses empty.
"0.0.0.0" does not count as "everyone" here. It is a convention only when binding a socket to tell the system that all available addresses should be bound.
Cheers
"0.0.0.0" does not count as "everyone" here. It is a convention only when binding a socket to tell the system that all available addresses should be bound.
Cheers
Who is online
Users browsing this forum: Ronaldniff and 96 guests