Cross site scripting problems with testacular e2e tests and angular

I am building a webapp with a using java at the server and angular for the front end. I am trying to set up e2e tests using testacular. The tests fail beacause of what I assume is cross site scripting problems. Since I build my back end using java, I have a tomcat server running hosting my web app. If I navigate to http://localhost:8087/angular in my browser, the page loads. (The port 8087 is for my tomcat 7 installation since I have both tomcat 6 and 7 on my computer).

When I run testacular start 'path/to/config/file I get this error:

http://localhost:9876/adapter/lib/angular-scenario.js?1360780804000:25281: 
Error: Permission denied to access property 'document'

This is my config file:

basePath = '../../';

files = [ 
  ANGULAR_SCENARIO,
  ANGULAR_SCENARIO_ADAPTER,
  'test/js/tests/e2e/scenarios.js'
];

autoWatch = false;

browsers = ['firefox'];

singleRun = true;

proxies = { 
  '/': 'http://localhost:8087/angular'
};

junitReporter = { 
  outputFile: 'test_out/e2e.xml',
  suite: 'e2e'
};

And this is my test file:

describe("E2E Test", function() {

    it("should load the document and be able to read from it", function() {
        browser().navigateTo("/");
        expect(element("body", "The body element").count()).toBe(1); 
    }); 

});

Is there any way around this? Using: node v0.8.20 testacular 0.5.10

First of all I'd recommend that you upgrade Karma

The configuration you've shared should work just as well as the one in this here example. The fact that it doesn't is either caused by the fact that you're using an old version of testacular, OR by an issue in your application itself.

I've had some luck with older versions of testacular/angular when I served everything from port 80 using Nginx, but I would upgrade first if I were you.