java - Cross Domain $.ajax POST to REST Web Service -


i have following scenario:

app1: 

my web service hosted on tomcat server :

192.168.100.123    app2: 

another application communicating web service hosted on machine , server :

192.168.100.456 

request , response header

allow   options,post content-length  511 content-type    application/vnd.sun.wadl+xml date    thu, 02 may 2013 22:53:17 gmt server  apache-coyote/1.1 ---------------------------- request headersview source   accept    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8   accept-encoding   gzip, deflate   accept-language   en-us,en;q=0.5   access-control-request-he...  content-type,x-requested-with   access-control-request-me...  post   cache-control no-cache   connection    keep-alive   dnt   1   host  192.168.200.164:8080   origin    http://192.168.200.157   pragma    no-cache   user-agent    mozilla/5.0 (windows nt 6.1; wow64; rv:20.0) gecko/20100101 firefox/20.0 

after debugging whole scenario using firebug sure issue regarding cross domain policy. kindly me figure way out of this'

http 302 refers status code having redirection information. may app2 tried login app1 , sent logged in url response.

once app2 receives such response, proably redirection url out of response can extracted , url should hit again app2.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -