smatin / smt2

Automatically exported from code.google.com/p/smt2
0 stars 0 forks source link

Empty Log View #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install smt2 and configuring in this way the external website (running in a 
VM with 192.168.2.2):
    try {
        smt2.record({
            trackingServer: "http://127.0.0.1/smt2/"
        });
    } catch(err) {}

2. generate some reports (everything works: the data is recorded in the DB)
3. click on the "View log" button of a report

What is the expected output? What do you see instead?
Shows me the animation of the mouse actions but the page is EMPTY!
The same happens if I open a local web page with 
"http://localhost/page.php"...but I fixed it using "http://127.0.0.1/page.php" 
and everything works fine.

What version of the product are you using? On what operating system?
Last SVN version: 2.1.0 + OSX Lion 10.7.4 + MAMP 2.1.1
I tested both versions: SWF and JS but the result is the same.

Original issue reported on code.google.com by ciccio...@gmail.com on 1 Aug 2012 at 10:34

GoogleCodeExporter commented 9 years ago
Actually if I open "http://localhost/page.php" the result is different: nothing 
is recorded, then maybe is another kind of issue...but is easily fixable using 
"127.0.0.1" as I said.

Original comment by ciccio...@gmail.com on 1 Aug 2012 at 10:39

GoogleCodeExporter commented 9 years ago
This is a cross-domain issue. Although `localhost` is an alias of `127.0.0.1`, 
both are saw as different domains for the browser. As you point out, to get it 
working you must access the page using the same URL as the one set in 
`trackingServer` option.

FYI, I'll release a new version in a month or so in which cross-domain is 
solved using XDR, but it won't work in old browsers (IE <= 7).

Original comment by luis.lei...@gmail.com on 21 Aug 2012 at 11:11