Results 1 to 2 of 2

Thread: Spring output not coming back to JS

  1. #1
    Sencha User
    Join Date
    May 2011

    Default Spring output not coming back to JS

    Dear All,
    We have a need to host HTML and ExtJS Javascript files on apache and the back end on tomcat. Both are running on the same machine, but listening to different port. We are able to post the data from the ExtJS form panel, but result is not reaching to the Javascript files. Any one has some idea why it may be going wrong. We have noted that, the data is reaching to the server but server's response is not reaching to the js file.

    Please let me know if any one has any idea abt fixing this.

    Thanks in advance.

    With Regards

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010


    A little hard to say with the information provided but I suspect you're falling foul of the same origin policy. If your servers are running on different ports then they count as totally different from a security perspective.

    You don't say how you're posting the data. If you're attempting to use Ajax then you may be inadvertently slipping into CORS territory (take a look on Wikipedia, Cross-Origin Resource Sharing, Mozilla also have a good guide to it). I suspect you'll find that IE and Opera won't send the request whereas Chrome, Safari and Firefox all will but they won't get the response.

    Standard practice would be to forward requests destined for the Tomcat through the Apache.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts