1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    102
    Vote Rating
    1
    anarchos78 is on a distinguished road

      0  

    Default ExtJs and Cros Domain definition

    ExtJs and Cros Domain definition


    Hello friends,
    I am trying to build an app using Extjs and ColdFusion. I have decided to use openBD for Coldfusion server so, i set up a Tomcat servlet. The ExtJs 4.1 lib and code are on Apache server. While on the same machine Apache and Tomcat uses different ports. This is a clasic SOP situation. In order to handle this restriction i had to use either jsonP or CORS. People here in the Sencha's forum helped me with the jsonP solution (thanks) but i needed to implement CORS. I had tuned up Tomcat for CORS, expecting Ext to be working out of the box! But no it didn't. While trying few things i placed the following code block in my app.js:
    Code:
    "Ext.data.Connection.prototype.useDefaultXhrHeader = false;"
    and like a miracle CORS worked!
    Why the above snippet worked? I think that it is ST (Touch) related code. It would be very nice if i learn something new!

    Tom
    Greece

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    102
    Vote Rating
    1
    anarchos78 is on a distinguished road

      0  

    Default


    I want to ask something, is the above code snippet eligible to use for cors?

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    1
    Vote Rating
    0
    dieuwe is on a distinguished road

      0  

    Default


    Thanks for that, it worked like a charm.

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi