GWT: individual js + css + images from the server

We would like to have the following configuration:

  • one server responds to GWT RPC: x.com (the one running Java)
  • another server is serving js / css / images: y.com (to optimize bandwidth)

So, the main page is: http://x.com/index.html and contains this line:<script type="text/javascript" language="javascript" src="http://**x.com**/my-app.nocache.js"></script>

We get a SOP error: Unsafe JavaScript is trying to access a frame with a url ...

Any suggestion, help with this?

+5
source share
2 answers

Add the following to your gwt.xml:

<add-linker name="xsiframe" />

, . " " , GWT-RPC, SOP.

. ( "xs" "xsiframe", "std", )

+8

, XMLHTTPRequest , . GWT-RPC.

:

  • -
  • JSON <script>
+1

All Articles