Results 1 to 4 of 4

Thread: CORS problem

  1. #1
    Sencha User
    Join Date
    May 2008
    Location
    Anrath - Germany
    Posts
    168
    Answers
    1

    Default CORS problem

    Hi,

    I try to make a Ajax call to an CORS enabled domain, but still get a 405 back.
    How can I make a AjaxRequest to a CORS enables domain with ExtJS 5?

    Thanks for your help,
    Urkman

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585

    Default

    Which request is returning the 405? Your intended request or a CORS pre-flight OPTIONS request?

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    27

    Default

    have you tried this:

    Ext.data.Connection.prototype.useDefaultXhrHeader = false;

    if you make CORS ajax call, it should be set to false.

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    84
    Answers
    4

    Default

    something like..

    Code:
    Ext.data.JsonP.request({     
    url : 'foo.php' 
    });

Posting Permissions

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