Serving GWT assets from an edge server

87 views
Skip to first unread message

lowecg2004

unread,
Jan 19, 2009, 7:29:11 PM1/19/09
to Google Web Toolkit
Hello,

I was hoping to serve my GWT assets from an edge server which is
configured under a subdomain of the main application's domain, let's
call it static.mydomain.com. The container page is served from
mydomain.com. Under this setup, I get the following message from
Chrome:

Unsafe JavaScript attempt to access frame with URL http://mydomain.com/dashboard.seam
from frame with URL http://static.mydomain.com/0.1/gwt/7A2CD37ABF7C6082CA53749A0E5AAD38.cache.html.
Domains, protocols and ports must match.

Is there anything I can do to get around this? Can GWT applications
be served under these configurations?

Best regards,

Chris.

Ian Petersen

unread,
Jan 19, 2009, 7:42:39 PM1/19/09
to Google-We...@googlegroups.com

You're butting up against the Same Origin Policy (SOP). There's been
lots of discussion of the SOP on this list before so you should get a
lot of help by searching the history. You can run GWT apps in the
environment you're describing, but I think some choices you otherwise
have are eliminated. You should probably search the history and then
re-evaluate your decision.

Ian

Chris Lowe

unread,
Jan 19, 2009, 7:46:21 PM1/19/09
to Google-We...@googlegroups.com
Thanks Ian, I'll take a look.

2009/1/20 Ian Petersen <ispe...@gmail.com>
Reply all
Reply to author
Forward
0 new messages