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.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User hectorgomis's Avatar
    Join Date
    Feb 2013
    Location
    Spain
    Posts
    42
    Vote Rating
    0
    hectorgomis is on a distinguished road

      0  

    Default Chrome CORS problem with ST2.3.0

    Chrome CORS problem with ST2.3.0


    Hi,

    Since friday, after last Chrome Update, I have a CORS problem trying to query a WS using Ajax. Before this date was working ok. I don't know if the problem is ST or Google Chrome.
    There is no problem in Safare for Windows, and It is working perfectly on Android and iOS Apps.

    This is the code of my ST 2.3.0 APP:

    Code:
    Ext.define('MyApp.view.MyButton', {
        extend: 'Ext.Button',
    
        config: {
            text: 'MyButton',
            listeners: [
                {
                    fn: 'onButtonTap',
                    event: 'tap'
                }
            ]
        },
    
        onButtonTap: function(button, e, eOpts) {
    
            Ext.Ajax.request({
                url: 'http://wservices.ws.com:4152/Service1.svc/Service',
                method: 'GET',
                success: function(response) {alert("ok")},
                failure: function(response) {alert("error")}
            });
        }
    
    });
    And Chrome says:

    OPTIONS http://wservices.ws.com:4152/Service...=1381936275641 405 (Method Not Allowed) sencha-touch-all.js:35192
    OPTIONS http://wservices.ws.com:4152/Service...=1381936275641 Invalid HTTP status code 405 sencha-touch-all.js:35192
    XMLHttpRequest cannot load http://wservices.ws.com:4152/Service...=1381936275641. Invalid HTTP status code 405

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,647
    Vote Rating
    115
    fmoseley is a glorious beacon of light fmoseley is a glorious beacon of light fmoseley is a glorious beacon of light fmoseley is a glorious beacon of light fmoseley is a glorious beacon of light fmoseley is a glorious beacon of light

      1  

    Default


    try setting useDefaultXhrHeader:false
    http://docs.sencha.com/touch/2.3.0/#...faultXhrHeader
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User hectorgomis's Avatar
    Join Date
    Feb 2013
    Location
    Spain
    Posts
    42
    Vote Rating
    0
    hectorgomis is on a distinguished road

      0  

    Default


    Now it is working! Thanks!

    Code:
                   Ext.Ajax.request({
                       url: 'http://172.16.0.96/hector/',
                        withCredentials: true,
                        useDefaultXhrHeader: false,
                        success: function(response) {alert("ok")},
                        failure: function(response) {alert("error")}
                   });

  4. #4
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84
    Vote Rating
    1
    busaware1 is on a distinguished road

      0  

    Default this doesnt work with ST 2.1.1

    this doesnt work with ST 2.1.1


    Hi,
    I have the same problem with ST 2.1.1 cannot upgrade at this stage.
    How do we fix this for ST 2.1.1 as this setting is not available?
    thx

Thread Participants: 2

Tags for this Thread