Hi,
I've installed APE Server on my laptop and checked the installation by running Demos (Chat, Controller, Move, Shoutbox) and Check page on Google Chrome, and everything works fine.
But if I do the same tests on Firefox, it doesn't work and if I look at JS console, I always get the same error "NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN: Illegal document.domain value"
For now, I'm testing APE locally (client and server on same computer), so :
- I did not change ape.conf file
- here is my Config.js file :
....................
/***
APE.Config.baseUrl = 'http://localhost/ape_jsf'; //APE JSF
APE.Config.domain = 'localhost';
APE.Config.server = 'localhost:6969'; //APE server URL
[...]
.....................
- here is my /etc/hosts file :
....................
127.0.0.1 localhost
127.0.0.1 0.localhost
127.0.0.1 1.localhost
127.0.0.1 2.localhost
127.0.0.1 3.localhost
127.0.0.1 4.localhost
127.0.0.1 5.localhost
127.0.0.1 6.localhost
127.0.0.1 7.localhost
127.0.0.1 8.localhost
127.0.0.1 9.localhost
127.0.0.1 10.localhost
127.0.0.1 11.localhost
127.0.0.1 12.localhost
127.0.0.1 13.localhost
// I did not know where to stop subdomains ;-)
// The following lines are desirable for IPv6 capable hosts
[...]
....................
Tools/Check page gives following log :
...................
Running test : Init
Running test : Loading Client
Running test : Loading config
Config values are :
identifier : ape
init : true
frequency : 0
scripts : http://localhost/ape_jsf/Source/mootools-core.js,http://localhost/ape_jsf/Source/Core/APE.js,http://localhost/ape_jsf/Source/Core/Events.js,http://localhost/ape_jsf/Source/Core/Core.js,http://localhost/ape_jsf/Source/Pipe/Pipe.js,http://localhost/ape_jsf/Source/Pipe/PipeProxy.js,http://localhost/ape_jsf/Source/Pipe/PipeMulti.js,http://localhost/ape_jsf/Source/Pipe/PipeSingle.js,http://localhost/ape_jsf/Source/Request/Request.js,http://localhost/ape_jsf/Source/Request/Request.Stack.js,http://localhost/ape_jsf/Source/Request/Request.CycledStack.js,http://localhost/ape_jsf/Source/Transport/Transport.longPolling.js,http://localhost/ape_jsf/Source/Transport/Transport.SSE.js,http://localhost/ape_jsf/Source/Transport/Transport.XHRStreaming.js,http://localhost/ape_jsf/Source/Transport/Transport.JSONP.js,http://localhost/ape_jsf/Source/Transport/Transport.WebSocket.js,http://localhost/ape_jsf/Source/Core/Utility.js,http://localhost/ape_jsf/Source/Core/JSON.js
baseUrl : http://localhost/ape_jsf
domain : localhost
server : localhost:6969
Running test : Setting document.domain
Running test : Checking APE.Config.baseUrl
APE JSF Version 1.1
Running test : Contacting APE Server
domain = localhost
Running test : Contacting APE Server (adding frequency)
Running test : Initializing APE Client
Can't load APE JSF
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel
...............
Can someone please help me ? It seems I'm not the first one having this kind of issue but did not find any solution
Thanks,
Fred