tntim96 / JSCover

JSCover is a JavaScript Code Coverage Tool that measures line, branch and function coverage
GNU General Public License v2.0
399 stars 84 forks source link

Uncaught DOMException #314

Closed ipadkid-sketchy closed 2 years ago

ipadkid-sketchy commented 2 years ago

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

tntim96 commented 2 years ago

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

ipadkid-sketchy commented 2 years ago

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

tntim96 commented 2 years ago

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