Can not connect to smarfox by Firefox

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

hhd90
Posts: 67
Joined: 21 Dec 2012, 05:17

Can not connect to smarfox by Firefox

Postby hhd90 » 25 Nov 2013, 11:02

Hi smartfoxTeam,
I can not connect to server if clients use Firefox version 25.0.1. Here is the details of console

Code: Select all

[17:26:51.923] "[INFO] SmartFox instance ready!"
[17:26:51.928] SecurityError: The operation is insecure. @ https://p2o.wiimob.com/js25-11/SFS2X_API_JS.js:283
[17:27:00.419] POST https://apps.facebook.com/ajax/apps/usage_update.php [HTTP/1.1 200 OK 249ms]


If browser is chrome the connecting have no problem. I user JavaScript API version 1.0.3.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Can not connect to smarfox by Firefox

Postby Bax » 25 Nov 2013, 12:14

We would like to test this behavior.
Please contact us by email providing a link to your game and an account to join it.
Thank you.
Paolo Bax
The SmartFoxServer Team
User avatar
marsoups
Posts: 167
Joined: 14 Apr 2008, 03:30

Re: Can not connect to smarfox by Firefox

Postby marsoups » 30 Jan 2014, 22:24

We are having this same issue - latest version of Firefox won't accept WS as this is insecure, we need to use WSS for the websocket connection.

If the webpage is HTTPS then Firefox has become very fussy with non-HTTPS references... It's very simple to reproduce if you have an HTTPS website and attempt websocket connection.

Is there any resolution thus far to this issue ? Any help would be appreciated..
User avatar
marsoups
Posts: 167
Joined: 14 Apr 2008, 03:30

Re: Can not connect to smarfox by Firefox

Postby marsoups » 31 Jan 2014, 01:43

This issue also occurs now on the latest version of Internet Explorer....
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can not connect to smarfox by Firefox

Postby Lapo » 31 Jan 2014, 10:29

Yes, this one of the many problems that are still plaguing Websockets. The lack of a standard security model. Everyone is interpreting the security rules according to their taste, creating more problems than what they solve.

This is not to say that FireFox is wrong. Maybe the FF team is the only one who gets the websoscket security right, but so far there's no consensus in the various implementations.

We have spent at least the last month experimenting with browsers, security models, various server side implementations and I have to say I am largely disappointed at the current state of the Websocket "standard". It is still pretty immature and far from being production ready. Especially the client side is highly inconsistent across browsers.

Take Safari, for example. As of today there's no way to locally test an SSL websocket app without having a certified SSL certificate, which is preposterous. This is just one of a larger number of issues that are afflicting the framework at the moment. Not to mention the mobile side of things.

We're currently looking into various implementations that are mature enough and stable enough to provide solid support for the SSL side of websockets. So far the quest hasn't proved very satisfactory and we'll probably have to settle for a good-enough solution. HTML5 is still in its infancy and problems will continue to be fixed as the standard gets refined.

Sorry for the rant. :)
Hopefully SSL support will be available in the next release, although I cannot guarantee it 100% at this moment.
I'll post more updates along the way.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
marsoups
Posts: 167
Joined: 14 Apr 2008, 03:30

Re: Can not connect to smarfox by Firefox

Postby marsoups » 07 Mar 2014, 22:32

Thanks, will be good to have this ability especially since browsers are closing up non https holes. Also this may satisfy customers with having a very secure framework for communication.

AT least supporting some of the major browsers that seem to have this in order will be a good start, other browsers can be directed to a non-https solution if required (with exception handling in https configuration)
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can not connect to smarfox by Firefox

Postby Lapo » 08 Mar 2014, 10:04

Hi,
indeed I agree. I can already tell you that wss:// will be fully supported in the next release (2.9.0). We have this feature already working and tested with all major browser including Safari, Firefox, Chrome and IE and the relative mobile versions.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 17 guests