Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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,865
    Vote Rating
    438
    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