On Tue, Feb 22, 2011 at 9:19 PM, Bob Graton <hugo.villeneuve@gmail.com> wrote:
Hello,
I have my demo GWT app running fine at : http://site1.com/
Inside my Html Host file on this site I load the GWT app with:
<script type="text/javascript" language="javascript" src="myapp1/
myapp1.nocache.js"></script>
Work fine.
I would like to embeded this App on another site 'http://site2.com'
without iFrame.
The new HTML page on site2.com tries to load the GWT js file from site
1 like this.
<script type="text/javascript" language="javascript" src="http://
site1.com/myapp1/myapp1.nocache.js"></script>
This technique should not be restricted to Cross-site-scripting and
SoP.
Why wouldn't this be restricted by cross site scripting? You're trying to load a script from another domain. I'm pretty sure you have to use an iframe to load the app from another domain.
The code is loaded but then I get the following JS Error:
Permission refusée à <http://site1.com> d'obtenir la propriété
Window.myhvgwt1 de <http://site2.com>.
http://site1.com/myapp1/82F202B9CDA2AEB236F4E6F6C9C1A8ED.cache.html
Line 775
Any Idea ?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment