tntim96/JSCover

Uncaught DOMException

Closed this issue · 3 comments

For everyone's context, I'm browsing an apache web application that is being run on the port 10100, As per checking the console on the browser, I've noticed that there was an error. Please see details be for your reference.

Uncaught DOMException: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame

How can I proceed with this? Now I'm stuck in the login loop. It keeps on refreshing upon typing the credentials and submitting it

image

What version of JSCover are you using, and how are you instrumenting? It looks like you're using it as a proxy?

JSCover 2.0.14 for the version. I used the simple web browser sever.

So you can't really do it that way. Your best option is to instrument the files and put them on your web-server. There's an example of that here: https://github.com/tntim96/JSCover/tree/master/examples/localStorage-file-system