xdissent / iectrl

Command line interface and Node module for managing ievms virtual machines
http://xdissent.github.io/iectrl
MIT License
198 stars 14 forks source link

cors limitation #7

Open benzen opened 10 years ago

benzen commented 10 years ago

When launching ie with

VBoxManag guestcontrol IE10 - Win7  execute --username IEUser --password Passw0rd! cmd.exe \c start c:\Program files\Internet explorer\iexplorer.exe

I've noticed that the instance of IE that is launched come with the wired configuration

In my case, the webapp i'm testing include CORS request. And i get:

Script5 Acces denied

But if i launch ie by the icon, then the it will reuse the instance of IE. And i will not get the Script5 error

Is there something that could be done on iectrl?

Maybe anothger way to launche IE??

benzen commented 10 years ago

I made a couple of trial error

and i notice that when typing

"c:\Program files\Internet explorer\iexplorer.exe" "my.site.com"

Then there is no error message in my case.

But, since there is always a but:

i'm unable to fiure the exact same command from VBoxManage

benzen commented 10 years ago

With windows we can start ie by calling

$ explorer http://my.site

and i find out that we can start ie with this call

VBoxManag guestcontrol IE10 - Win7  execute --username IEUser --password Passw0rd! cmd.exe \c start explorer "http://my.site.com"

And it turn out that using this the cors configuration is correct. I'll try in the WE to make a PR.

Basically this should be easy

benzen commented 10 years ago

here it is https://github.com/xdissent/iectrl/pull/8

xdissent commented 10 years ago

Oh I just commented on #8 - I'll check out the info here and see what we can do.