PDA

View Full Version : Is there a way to get jspellEvolution/abc to go to a different port?


glenns
26th February 2008, 02:04 PM
Hi,

I am attempting to have the jspell javascript live in a war that is deployed on localhost:8080 and the evaluational jspellEvolution.war running on localhost:9090 and when I attempt to have the javascript call the server on 9090 it does not work. Is there somewhere I can set the hostname and port of the javascript?

Cheers,
Glenn

staff
22nd April 2008, 06:52 PM
The ports and host names must be the same or you'll run into JavaScript security errors. This is a browser limitation. The workaround if you must use different ports is to use a server-side proxy to redirect the request and make it look like it's coming from the same port.