Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Create general proxy for testing cross domain and without the <script>parent.uitest.instrument</script> #6

Open
tbosch opened this issue Mar 9, 2013 · 3 comments

Comments

@tbosch
Copy link
Contributor

tbosch commented Mar 9, 2013

Here is a first working version: https://github.com/tigbro/uitest-proxy

Needs tests, project build using grunt, standalone start command as well as library export to use it as a connect middleware.

@jperl
Copy link
Contributor

jperl commented Jun 11, 2013

@tigbro I am trying to test a chrome extension, so changing it's url may not work with this method. That is why I have started to put a chrome extension together to do this. Can you tell me why the iframe must be on the same domain?

@jperl
Copy link
Contributor

jperl commented Jun 11, 2013

Answer to my question: you cannot access the parent window.variables across domains. Looks like #22 might remove that constraint?

@tbosch
Copy link
Contributor Author

tbosch commented Jun 14, 2013

No, sorry, #22 won't allow to test cross origin. This is the so called "same origin policy", see here: http://en.wikipedia.org/wiki/Same_origin_policy

However, for building chrome extensions, your browser will be chrome, so you can use the following feature of chrome during testing: start it with the flag --disable-web-security and the same origin policy is deactivated.

And yes, you are right: #22 will remove the need of parent.uitest.instrument.

Tobias

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants